quart.formparser module#
- class quart.formparser.FormDataParser(stream_factory: ~typing.Callable[[int | None, str | None, str | None, int | None], ~typing.IO[bytes]] = <function default_stream_factory>, max_form_memory_size: int | None = None, max_content_length: int | None = None, cls: type[~werkzeug.datastructures.structures.MultiDict] | None = <class 'werkzeug.datastructures.structures.MultiDict'>, silent: bool = True)#
Bases:
object
- file_storage_class#
alias of
FileStorage
- get_parse_func(mimetype: str, options: dict[str, str]) ParserFunc | None #
- async parse(body: Body, mimetype: str, content_length: int | None, options: dict[str, str] | None = 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[[int | None, str | None, str | None, int | None], ~typing.IO[bytes]] = <function default_stream_factory>, max_form_memory_size: int | None = None, cls: type[~werkzeug.datastructures.structures.MultiDict] = <class 'werkzeug.datastructures.structures.MultiDict'>, buffer_size: int = 65536, file_storage_cls: type[~quart.datastructures.FileStorage] = <class 'quart.datastructures.FileStorage'>)#
Bases:
object
- fail(message: str) NoReturn #
- get_part_charset(headers: Headers) str #
- start_file_streaming(event: File, total_content_length: int) IO[bytes] #