Skip to content
Myr

Fixed the docs for the request object. They were incomplete

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent b34b086 · Browse files · 1 file+16 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+16 added−14 removed

  • other:+16 added−14 removed

1 file+16 added−14 removed

modified:docs/api.rst+16 added-14 removed
27 unmodified lines
28Incoming Request Data29---------------------3031.. autoclass:: Request32 :members:3333.. class:: request3435 To access incoming request data, you can use the global `request`36 object. Flask parses incoming request data for you and gives you37 access to it through that global object. Internally Flask makes38 sure that you always get the correct data for the active thread if you39 are in a multithreaded environment.4041 This is a proxy. See :ref:`notes-on-proxies` for more information.4243 The request object is an instance of a :class:`~werkzeug.wrappers.Request`44 subclass and provides all of the attributes Werkzeug defines. This45 just shows a quick overview of the most important ones.4634 .. attribute:: form3536 A :class:`~werkzeug.datastructures.MultiDict` with the parsed form data from `POST`37 or `PUT` requests. Please keep in mind that file uploads will not
82 unmodified lines
120 Contains the parsed body of the JSON request if the mimetype of121 the incoming data was `application/json`. This requires Python 2.6122 or an installed version of simplejson.123124.. class:: request125126 To access incoming request data, you can use the global `request`127 object. Flask parses incoming request data for you and gives you128 access to it through that global object. Internally Flask makes129 sure that you always get the correct data for the active thread if you130 are in a multithreaded environment.131132 This is a proxy. See :ref:`notes-on-proxies` for more information.133134 The request object is an instance of a :class:`~werkzeug.wrappers.Request`135 subclass and provides all of the attributes Werkzeug defines. This136 just shows a quick overview of the most important ones.137138139Response Objects140----------------141142.. autoclass:: flask.Response
354 unmodified lines