Ligare.web.middleware.flask

Flask-specific integrations for Ligare.web.

Functions

_get_correlation_id(log)

_get_correlation_id_from_headers(log)

_get_correlation_id_from_json_logging(log)

_log_all_api_requests(request, config, log)

_log_all_api_responses(response, config, log)

_ordered_api_response_handers(response, ...)

_wrap_all_api_responses(response, config, log)

bind_requesthandler(app, flask_app_handler)

register_flask_api_request_handlers(app)

register_flask_api_response_handlers(app)

Ligare.web.middleware.flask.bind_requesthandler(app, flask_app_handler)[source]
Ligare.web.middleware.flask.register_flask_api_request_handlers(app)[source]
Ligare.web.middleware.flask.register_flask_api_response_handlers(app)[source]