Cluster "Action" for given routes #1868
Labels
needs-author-action
An issue or pull request that requires more info or actions from the author.
Type: Idea
This issue is a high-level idea for discussion.
What should we add or change to make your life better?
It would be nice to leverage the HttpClient for an inbound route for generating immediate responses using the appsettings.json file with a new cluster parameter called "Action" (or similar). As "Destinations" defines how the forwarder handles the request, "Action" would permit (with appropriate properties) an immediate response without the need to handle that path within Program.cs and additional middleware.
Why is this important to you?
Currently, I need to check the path of the request for a route (say "myspecialroute") in middleware to generate a response and terminate the chain. Using something simple like:
Having this 'actionable' configured in appsettings would be nice as if the route changed, a simple config file update would do the trick versus having to re-program the middleware.
The text was updated successfully, but these errors were encountered: