class FormDataParser:
This class implements parsing of form data for Werkzeug. By itself it can parse multipart and url encoded form data. It can be subclassed and extended but for most mimetypes it is a better idea to use the untouched stream and expose it as separate attributes on a request object.
Parameters | |
stream_factory | An optional callable that returns a new read and
writeable file descriptor. This callable works
the same as Response._get_file_stream . |
charset | The character set for URL and url encoded form data. |
errors | The encoding error behavior. |
max_form_memory_size | 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 | If this is provided and the transmitted data
is longer than this value an
~exceptions.RequestEntityTooLarge
exception is raised. |
cls | an optional dict class to use. If this is not specified
or None the default MultiDict is used. |
silent | If set to False parsing errors will not be caught. |
Method | __init__ |
Undocumented |
Method | get_parse_func |
Undocumented |
Method | parse |
Parses the information from the given stream, mimetype, content length and mimetype parameters. |
Method | parse_from_environ |
Parses the information from the environment as form data. |
Class Variable | parse_functions |
Undocumented |
Instance Variable | charset |
Undocumented |
Instance Variable | cls |
Undocumented |
Instance Variable | errors |
Undocumented |
Instance Variable | max_content_length |
Undocumented |
Instance Variable | max_form_memory_size |
Undocumented |
Instance Variable | silent |
Undocumented |
Instance Variable | stream_factory |
Undocumented |
Method | _parse_multipart |
Undocumented |
Method | _parse_urlencoded |
Undocumented |
Undocumented
Parameters | |
stream_factory:t.Optional[ | Undocumented |
charset:str | Undocumented |
errors:str | Undocumented |
max_form_memory_size:t.Optional[ | Undocumented |
max_content_length:t.Optional[ | Undocumented |
cls:t.Optional[ | Undocumented |
silent:bool | Undocumented |
Undocumented
Parameters | |
mimetype:str | Undocumented |
options:t.Dict[ | Undocumented |
Returns | |
t.Optional[ | Undocumented |
Parameters | |
stream:t.IO[ | an input stream |
mimetype:str | the mimetype of the data |
content_length:t.Optional[ | the content length of the incoming data |
options:t.Optional[ | optional mimetype parameters (used for the multipart boundary for instance) |
Returns | |
t_parse_result | A tuple in the form (stream, form, files). |
Parameters | |
environ:WSGIEnvironment | the WSGI environment to be used for parsing. |
Returns | |
t_parse_result | A tuple in the form (stream, form, files). |
t.Dict[ str, t.Callable[ [ FormDataParser, t.IO[ bytes], str, t.Optional[ int], t.Dict[ str, str]], t_parse_result]]
=
Undocumented
Undocumented
Parameters | |
stream:t.IO[ | Undocumented |
mimetype:str | Undocumented |
content_length:t.Optional[ | Undocumented |
options:t.Dict[ | Undocumented |
Returns | |
t_parse_result | Undocumented |
Undocumented
Parameters | |
stream:t.IO[ | Undocumented |
mimetype:str | Undocumented |
content_length:t.Optional[ | Undocumented |
options:t.Dict[ | Undocumented |
Returns | |
t_parse_result | Undocumented |