quart.typing module

class quart.typing.ASGIHTTPProtocol(*args, **kwargs)

Bases: Protocol

class quart.typing.ASGILifespanProtocol(*args, **kwargs)

Bases: Protocol

class quart.typing.ASGIWebsocketProtocol(*args, **kwargs)

Bases: Protocol

class quart.typing.TestAppProtocol(*args, **kwargs)

Bases: Protocol

async shutdown()None
async startup()None
test_client()quart.typing.TestClientProtocol
class quart.typing.TestClientProtocol(*args, **kwargs)

Bases: Protocol

app: Quart
cookie_jar: Optional[CookieJar]
async delete(*args: Any, **kwargs: Any)Response
async get(*args: Any, **kwargs: Any)Response
async head(*args: Any, **kwargs: Any)Response
http_connection_class: Type[TestHTTPConnectionProtocol]
async open(path: str, *, method: str = 'GET', headers: Optional[Union[dict, Headers]] = None, data: Optional[AnyStr] = None, form: Optional[dict] = None, query_string: Optional[dict] = None, json: Any = None, scheme: str = 'http', follow_redirects: bool = False, root_path: str = '', http_version: str = '1.1')Response
async options(*args: Any, **kwargs: Any)Response
async patch(*args: Any, **kwargs: Any)Response
async post(*args: Any, **kwargs: Any)Response
push_promises: List[Tuple[str, Headers]]
async put(*args: Any, **kwargs: Any)Response
request(path: str, *, method: str = 'GET', headers: Optional[Union[dict, Headers]] = None, query_string: Optional[dict] = None, scheme: str = 'http', root_path: str = '', http_version: str = '1.1')TestHTTPConnectionProtocol
session_transaction(path: str = '/', *, method: str = 'GET', headers: Optional[Union[dict, Headers]] = None, query_string: Optional[dict] = None, scheme: str = 'http', data: Optional[AnyStr] = None, form: Optional[dict] = None, json: Any = None, root_path: str = '', http_version: str = '1.1')AsyncContextManager[SessionMixin]
async trace(*args: Any, **kwargs: Any)Response
websocket(path: str, *, headers: Optional[Union[dict, Headers]] = None, query_string: Optional[dict] = None, scheme: str = 'ws', subprotocols: Optional[List[str]] = None, root_path: str = '', http_version: str = '1.1')TestWebsocketConnectionProtocol
websocket_connection_class: Type[TestWebsocketConnectionProtocol]
class quart.typing.TestHTTPConnectionProtocol(*args, **kwargs)

Bases: Protocol

async as_response()Response
async disconnect()None
push_promises: List[Tuple[str, Headers]]
async receive()bytes
async send(data: bytes)None
async send_complete()None
class quart.typing.TestWebsocketConnectionProtocol(*args, **kwargs)

Bases: Protocol

async close(code: int)None
async disconnect()None
async receive()AnyStr
async receive_json()Any
async send(data: AnyStr)None
async send_json(data: Any)None