web_app

Module Contents

Classes

Application(self)
CleanupError()
CleanupContext(self)
class Application
__init__()
__init_subclass__()
__setattr__(name, val)
__eq__(other)
__getitem__(key)
_check_frozen()
__setitem__(key, value)
__delitem__(key)
__len__()
__iter__()
loop()
_set_loop(loop)
frozen()
freeze()
debug()
_reg_subapp_signals(subapp)
add_subapp(prefix, subapp)
add_routes(routes)
on_response_prepare()
on_startup()
on_shutdown()
on_cleanup()
cleanup_ctx()
router()
middlewares()
_make_handler(**kwargs)
make_handler(**kwargs)
startup()

Causes on_startup signal

Should be called in the event loop along with the request handler.

shutdown()

Causes on_shutdown signal

Should be called before cleanup()

cleanup()

Causes on_cleanup signal

Should be called after shutdown()

_make_request(message, payload, protocol, writer, task, _cls=Request)
_prepare_middleware()
_handle(request)
__call__()

gunicorn compatibility

__repr__()
class CleanupError
exceptions()
class CleanupContext
__init__()
_on_startup(app)
_on_cleanup(app)