None
Bases: pecan.hooks.PecanHook
Attach the config object to the request so controllers can get to it.
ConfigHook.
before
(state)¶Override this method to create a hook that gets called after routing, but before the request gets passed to your controller.
Parameters: | state – The Pecan state object for the current request. |
---|
None
Bases: pecan.hooks.PecanHook
Configures a request context and attaches it to the request.
ContextHook.
after
(state)¶Override this method to create a hook that gets called after the request has been handled by the controller.
Parameters: | state – The Pecan state object for the current request. |
---|
ContextHook.
before
(state)¶Override this method to create a hook that gets called after routing, but before the request gets passed to your controller.
Parameters: | state – The Pecan state object for the current request. |
---|
None
Bases: pecan.hooks.PecanHook
Attach the dbapi object to the request so controllers can get to it.
DBHook.
before
(state)¶Override this method to create a hook that gets called after routing, but before the request gets passed to your controller.
Parameters: | state – The Pecan state object for the current request. |
---|
None
Bases: pecan.hooks.PecanHook
Workaround rpc.common: deserialize_remote_exception.
deserialize_remote_exception builds rpc exception traceback into error message which is then sent to the client. Such behavior is a security concern so this hook is aimed to cut-off traceback from the error message.
NoExceptionTracebackHook.
after
(state)¶Override this method to create a hook that gets called after the request has been handled by the controller.
Parameters: | state – The Pecan state object for the current request. |
---|
None
Bases: pecan.hooks.PecanHook
Attach the right public_url to the request.
Attach the right public_url to the request so resources can create links even when the API service is behind a proxy or SSL terminator.
PublicUrlHook.
before
(state)¶Override this method to create a hook that gets called after routing, but before the request gets passed to your controller.
Parameters: | state – The Pecan state object for the current request. |
---|
None
Bases: pecan.hooks.PecanHook
Attach the rpcapi object to the request so controllers can get to it.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.