class documentation

class Request(RequestBase): (source)

View In Hierarchy

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_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.
Method _load_form_data Undocumented
def on_json_loading_failed(self, e: t.Optional[ValueError]) -> t.Any: (source)

Undocumented

routing_exception: t.Optional[Exception] = (source)

Undocumented

url_rule: t.Optional[Rule] = (source)

Undocumented

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.

@property
max_content_length: t.Optional[int] = (source)

Read-only view of the ``MAX_CONTENT_LENGTH`` config key.

def _load_form_data(self): (source)

Undocumented