flask.Flask.preprocess_request

Flask.preprocess_request()[source]

Called before the actual request dispatching and will call each before_request() decorated function, passing no arguments. If any of these functions returns a value, it’s handled as if it was the return value from the view and further request handling is stopped.

This also triggers the url_value_processor() functions before the actual before_request() functions are called.