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
feat(routing): override default responders via on_request() (#2446)
* feat(routing): override default responders via on_request()
Add an option to CompiledRouterOptions that allows for overriding the default responders by implementing on_request() in the resource class
Closes#2071
* feat(routing): on_request() supports suffix
Support on_request_{suffix}, unit tests for wrong wrong color of the default responder, minor on_request fixes
Closes#2071
* docs(routing): improve wording + fix a misspelling
* docs(routing): Comment for bound methods in tests
* refactor: `allow_on_request` ➡️ `default_to_on_request`
* docs(routing): on_request example and explanation
* fix(routing): Decorate default responders at runtime when default_to_on_request is enabled
* fix(routing): Unit tests for decorated default responders with suffix
* add newline
* chore: clean up an incomplete master merge
* docs(routing): misc touchups
* fix(routing): Add module attribute for enabling decorating default responders with class-level hooks
* fix(routing): Skip overriding on_websocket with default responders
* docs(towncrier): tweak the proposed newsfragment
* refactor: clean up and tweak stuff
* refactor: bikeshed a cls link
* refactor(hooks): DRY on_request regex
---------
Co-authored-by: Vytautas Liuolia <vytautas.liuolia@gmail.com>
0 commit comments