class Request(RequestBase): (source)
The request object used by default in Flask. Remembers the matched endpoint and view arguments. It is what ends up as :class:`~flask.request`. If you want to replace the request object used you can subclass this and set :attr:`~flask.Flask.request_class` to your subclass. The request object is a :class:`~werkzeug.wrappers.Request` subclass and provides all of the attributes Werkzeug defines plus a few Flask specific ones.
Method | on |
Undocumented |
Class Variable | routing |
Undocumented |
Class Variable | url |
Undocumented |
Class Variable | view |
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 |
Read-only view of the ``MAX_CONTENT_LENGTH`` config key. |
Method | _load |
Undocumented |
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.
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. .. versionadded:: 2.0.1
The endpoint that matched the request URL. This will be ``None`` if matching failed or has not been performed yet. This in combination with :attr:`view_args` can be used to reconstruct the same URL or a modified URL.