Undocumented
Class | FormDataParser |
No summary |
Class | MultiPartParser |
Undocumented |
Class | TStreamFactory |
Undocumented |
Function | default_stream_factory |
Undocumented |
Function | exhaust_stream |
Helper decorator for methods that exhausts the stream on return. |
Function | parse_form_data |
Parse the form data in the environ and return it as tuple in the form (stream, form, files). You should only call this method if the transport method is POST , PUT , or PATCH . |
Function | parse_multipart_headers |
No summary |
Constant | F |
Undocumented |
Variable | SpooledTemporaryFile |
Undocumented |
Variable | t_parse_result |
Undocumented |
Function | _exhaust |
Undocumented |
Function | _line_parse |
Removes line ending characters and returns a tuple (stripped_line , is_terminated ). |
Undocumented
Parameters | |
total_content_length:t.Optional[ | Undocumented |
content_type:t.Optional[ | Undocumented |
filename:t.Optional[ | Undocumented |
content_length:t.Optional[ | Undocumented |
Returns | |
t.IO[ | Undocumented |
Parse the form data in the environ and return it as tuple in the form
(stream, form, files). You should only call this method if the
transport method is POST
, PUT
, or PATCH
.
If the mimetype of the data transmitted is multipart/form-data
the
files multidict will be filled with FileStorage
objects. If the
mimetype is unknown the input stream is wrapped and returned as first
argument, else the stream is empty.
This is a shortcut for the common usage of FormDataParser
.
Have a look at :doc:`/request_data` for more details.
max_form_memory_size
, max_content_length
and
cls
parameters were added.silent
flag was added.Parameters | |
environ:WSGIEnvironment | the WSGI environment to be used for parsing. |
stream_factory:t.Optional[ | An optional callable that returns a new read and
writeable file descriptor. This callable works
the same as Response._get_file_stream . |
charset:str | The character set for URL and url encoded form data. |
errors:str | The encoding error behavior. |
max_form_memory_size:t.Optional[ | the maximum number of bytes to be accepted for
in-memory stored form data. If the data
exceeds the value specified an
~exceptions.RequestEntityTooLarge
exception is raised. |
max_content_length:t.Optional[ | If this is provided and the transmitted data
is longer than this value an
~exceptions.RequestEntityTooLarge
exception is raised. |
cls:t.Optional[ | an optional dict class to use. If this is not specified
or None the default MultiDict is used. |
silent:bool | If set to False parsing errors will not be caught. |
Returns | |
t_parse_result | A tuple in the form (stream, form, files). |
Parameters | |
iterable:t.Iterable[ | Undocumented |
Returns | |
Headers | Undocumented |