quart.formparser module

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

Bases: object

file_storage_class

alias of quart.datastructures.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: Callable[[int, Optional[str], Optional[str], Optional[int]], BinaryIO] = <function default_stream_factory>, charset: str = 'utf-8', errors: str = 'replace', max_form_memory_size: Optional[int] = None, cls: Type[werkzeug.datastructures.MultiDict] = <class 'werkzeug.datastructures.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: werkzeug.datastructures.Headers) str
async parse(body: Body, boundary: bytes, content_length: int) Tuple[MultiDict, MultiDict]
start_file_streaming(event: werkzeug.sansio.multipart.File, total_content_length: int) BinaryIO