quart.asgi module

class quart.asgi.ASGIHTTPConnection(app: Quart, scope: dict)

Bases: object

async handle_messages(request: quart.wrappers.request.Request, receive: Callable) → None
async handle_request(request: quart.wrappers.request.Request, send: Callable) → None
class quart.asgi.ASGILifespan(app: Quart, scope: dict)

Bases: object

class quart.asgi.ASGIWebsocketConnection(app: Quart, scope: dict)

Bases: object

async accept_connection(send: Callable, headers: quart.datastructures.Headers, subprotocol: Optional[str]) → None
async handle_messages(receive: Callable) → None
async handle_websocket(websocket: quart.wrappers.request.Websocket, send: Callable) → None
async send_data(send: Callable, data: AnyStr) → None