class Request(RequestBase):
The request object used by default in Flask. Remembers the matched endpoint and view arguments.
It is what ends up as ~flask.request
. If you want to replace
the request object used you can subclass this and set
~flask.Flask.request_class
to your subclass.
The request object is a ~werkzeug.wrappers.Request
subclass and
provides all of the attributes Werkzeug defines plus a few Flask
specific ones.
Method | _load_form_data |
Undocumented |
Method | on_json_loading_failed |
Undocumented |
Class Variable | routing_exception |
Undocumented |
Class Variable | url_rule |
Undocumented |
Class Variable | view_args |
Undocumented |
Property | blueprint |
The registered name of the current blueprint. |
Property | blueprints |
The registered names of the current blueprint upwards through parent blueprints. |
Property | endpoint |
The endpoint that matched the request URL. |
Property | max_content_length |
Read-only view of the MAX_CONTENT_LENGTH config key. |
Undocumented
Parameters | |
e:Exception | Undocumented |
Returns | |
te.NoReturn | Undocumented |
t.Optional[ str]
=
The registered name of the current blueprint.
This will be None if the endpoint is not part of a blueprint, or if URL matching failed or has not been performed yet.
This does not necessarily match the name the blueprint was created with. It may have been nested, or registered with a different name.
t.List[ str]
=
The registered names of the current blueprint upwards through parent blueprints.
This will be an empty list if there is no current blueprint, or if URL matching failed.
t.Optional[ str]
=
The endpoint that matched the request URL.
This will be None if matching failed or has not been performed yet.
This in combination with view_args
can be used to
reconstruct the same URL or a modified URL.