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
The text was updated successfully, but these errors were encountered:
dukedougal
changed the title
Can Falcon dispatch to a callable based on any property of a request, not just method?
Can Falcon dispatch to a callable based on any property of a request, not just request method (GET/POST etc)?
Feb 18, 2016
Currently API._get_responder() looks up the responder based on the path and HTTP method in the request. You could inherit from API and override _get_responder() to make it more flexible. Depending on what you need to do, a sink may also work.
I'm going to close this since it's unlikely that we are going to support dispatching based on any property of a request in the default router.
However, since #967, routers get access to the full req object, so a custom router can now be used to achieve just that.
A subset of this issue, routing based on query string parameters, is tracked in #838.
accept headers, cookies, query strings, etc.
The text was updated successfully, but these errors were encountered: