quart.formparser module#

class quart.formparser.FormDataParser(stream_factory: ~typing.Callable[[~typing.Optional[int], ~typing.Optional[str], ~typing.Optional[str], ~typing.Optional[int]], ~typing.IO[bytes]] = <function default_stream_factory>, charset: str = 'utf-8', errors: str = 'replace', max_form_memory_size: ~typing.Optional[int] = None, max_content_length: ~typing.Optional[int] = None, cls: ~typing.Optional[~typing.Type[~werkzeug.datastructures.MultiDict]] = <class 'werkzeug.datastructures.MultiDict'>, silent: bool = True)#

Bases: object

file_storage_class#

alias of FileStorage

get_parse_func(mimetype: str, options: Dict[str, str]) Optional[ParserFunc]#
async parse(body: Body, mimetype: str, content_length: Optional[int], options: Optional[Dict[str, str]] = None) Tuple[MultiDict, MultiDict]#
parse_functions: Dict[str, ParserFunc] = {'application/x-url-encoded': <function FormDataParser._parse_urlencoded>, 'application/x-www-form-urlencoded': <function FormDataParser._parse_urlencoded>, 'multipart/form-data': <function FormDataParser._parse_multipart>}#
class quart.formparser.MultiPartParser(stream_factory: ~typing.Callable[[~typing.Optional[int], ~typing.Optional[str], ~typing.Optional[str], ~typing.Optional[int]], ~typing.IO[bytes]] = <function default_stream_factory>, charset: str = 'utf-8', errors: str = 'replace', max_form_memory_size: ~typing.Optional[int] = None, cls: ~typing.Type[~werkzeug.datastructures.MultiDict] = <class 'werkzeug.datastructures.MultiDict'>, buffer_size: int = 65536, file_storage_cls: ~typing.Type[~quart.datastructures.FileStorage] = <class 'quart.datastructures.FileStorage'>)#

Bases: object

fail(message: str) NoReturn#
get_part_charset(headers: Headers) str#
async parse(body: Body, boundary: bytes, content_length: int) Tuple[MultiDict, MultiDict]#
start_file_streaming(event: File, total_content_length: int) IO[bytes]#