Skip to content
Myr

Inherit Werkzeug docs (#2135)

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

Fix #2132

authored by Markus Unterwaditzer · committed by GitHub · parent 71c534d · Browse files · 1 file+1 added−57 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+1 added−57 removed

  • other:+1 added−57 removed

1 file+1 added−57 removed

modified:docs/api.rst+1 added-57 removed
28 unmodified lines
29---------------------3031.. autoclass:: Request32 :members:33 :inherited-members:3434 .. 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 not38 end up here, but instead in the :attr:`files` attribute.3940 .. attribute:: args4142 A :class:`~werkzeug.datastructures.MultiDict` with the parsed contents of the query43 string. (The part in the URL after the question mark).4445 .. attribute:: values4647 A :class:`~werkzeug.datastructures.CombinedMultiDict` with the contents of both48 :attr:`form` and :attr:`args`.4950 .. attribute:: cookies5152 A :class:`dict` with the contents of all cookies transmitted with53 the request.5455 .. attribute:: stream5657 If the incoming form data was not encoded with a known mimetype58 the data is stored unmodified in this stream for consumption. Most59 of the time it is a better idea to use :attr:`data` which will give60 you that data as a string. The stream only returns the data once.6162 .. attribute:: headers6364 The incoming request headers as a dictionary like object.6566 .. attribute:: data6768 Contains the incoming request data as string in case it came with69 a mimetype Flask does not handle.7071 .. attribute:: files7273 A :class:`~werkzeug.datastructures.MultiDict` with files uploaded as part of a74 ``POST`` or ``PUT`` request. Each file is stored as75 :class:`~werkzeug.datastructures.FileStorage` object. It basically behaves like a76 standard file object you know from Python, with the difference that77 it also has a :meth:`~werkzeug.datastructures.FileStorage.save` function that can78 store the file on the filesystem.7935 .. attribute:: environ3637 The underlying WSGI environment.3884 .. attribute:: method8586 The current request method (``POST``, ``GET`` etc.)8739 .. attribute:: path40 .. attribute:: full_path41 .. attribute:: script_root42 .. attribute:: url
21 unmodified lines
64 `url` ``u'http://www.example.com/myapplication/π/page.html?x=y'``65 `url_root` ``u'http://www.example.com/myapplication/'``66 ============= ======================================================67117 .. attribute:: is_xhr68119 ``True`` if the request was triggered via a JavaScript120 `XMLHttpRequest`. This only works with libraries that support the121 ``X-Requested-With`` header and set it to `XMLHttpRequest`.122 Libraries that do that are prototype, jQuery and Mochikit and123 probably some more.12469.. class:: request7071 To access incoming request data, you can use the global `request`72 object. Flask parses incoming request data for you and gives you
763 unmodified lines