falcon icon indicating copy to clipboard operation
falcon copied to clipboard

Allow setting of default responders when instantiating API

Open queertypes opened this issue 13 years ago • 2 comments

When instantiating an API, before adding any routes + responders, I want to be able to:

api.API(path_not_found=myhook, bad_request=my_bad, ...)

queertypes avatar Aug 26 '13 21:08 queertypes

What's the purpose?

lichray avatar Aug 26 '13 21:08 lichray

One particular use case is to override path_not_found to turn it into a request forwarding mechanism.

queertypes avatar Aug 26 '13 21:08 queertypes