The Request Object
~~~~~~~~~~~~~~~~~~
The :class:`Request ` object encapsulates all the information
passed by the client. It is passed as an argument to route handlers, as well as
to before-request, after-request and error handlers.
Request Attributes
^^^^^^^^^^^^^^^^^^
The request object provides access to the request attributes, including:
- :attr:`method `: The HTTP method of the request.
- :attr:`path `: The path of the request.
- :attr:`args `: The query string parameters of the
request, as a :class:`MultiDict ` object.
- :attr:`headers `: The headers of the request, as a
dictionary.
- :attr:`cookies `: The cookies that the client sent
with the request, as a dictionary.
- :attr:`content_type `: The content type
specified by the client, or ``None`` if no content type was specified.
- :attr:`content_length `: The content
length of the request, or 0 if no content length was specified.
- :attr:`json `: The parsed JSON data in the request
body. See :ref:`below ` for additional details.
- :attr:`form `: The parsed form data in the request
body, as a dictionary. See :ref:`below