OpenQuizz
Une application de gestion des contenus pédagogiques
Request Class Reference
Inheritance diagram for Request:
Collaboration diagram for Request:

Public Member Functions

def max_content_length (self)
 
def endpoint (self)
 
def blueprint (self)
 
- Public Member Functions inherited from JSONMixin
def on_json_loading_failed (self, e)
 

Static Public Attributes

 url_rule
 
 view_args
 
 routing_exception
 
- Static Public Attributes inherited from JSONMixin
 json_module
 

Detailed Description

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.

Member Function Documentation

◆ blueprint()

def blueprint (   self)
The name of the current blueprint

◆ endpoint()

def endpoint (   self)
The endpoint that matched the request.  This in combination with
:attr:`view_args` can be used to reconstruct the same or a
modified URL.  If an exception happened when matching, this will
be ``None``.

◆ max_content_length()

def max_content_length (   self)
Read-only view of the ``MAX_CONTENT_LENGTH`` config key.

Field Documentation

◆ routing_exception

routing_exception
static

◆ url_rule

url_rule
static

◆ view_args

view_args
static

The documentation for this class was generated from the following file: