moriyoshi/pyramid_exclusive_request_methods
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
.. contents:: Introduction ============ pyramid_exclusive_request_methods enables one to add a view config whose view handles all the HTTP request methods and responds with *405 Method Not Allowed* for the request methods not explicitly specified in the configuration. Synopsis:: from pyramid_exclusive_request_methods import exclusive_view_config @view_config(route_name='foo', request_method=['GET']) def foo(context, request): pass @exclusive_view_config(route_name='bar', request_method='GET') def bar(context, request): pass c = Configurator(...) c.includeme('pyramid_exclusive_request_methods')
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published