You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @thomafred
Sorry for taking so long to reply. Currently this is not supported but I like the idea of adding support for routing based on headers.
I am working on version 2 of the framework and related libraries. Right now adding support for dependency injection to authentication handlers and authorization requirements - I also plan to add full support for dependency injection to binders.
I can add support for routing based on HTTP headers (including host) and make it part of v2.
However, there is no built-in handling of dynamic parameters like in your second example pattern-{matching} - but it is easy to define a custom filter that enables that scenario.
I'll document soon all new features and changes introduced with version 2.
Note: consider using Discussions to open a conversation about new features…
🚀 Feature Request
Hi there!
It would be able to route base on header value of a specific header.
For example:
Value patterns could also be cool:
The text was updated successfully, but these errors were encountered: