quart.testing.connections 模块#
- exception quart.testing.connections.HTTPDisconnectError#
基类:
Exception
- class quart.testing.connections.TestHTTPConnection(app: Quart, scope: HTTPScope, _preserve_context: bool = False)#
基类:
object- async disconnect() None#
- async receive() bytes#
- async send(data: bytes) None#
- async send_complete() None#
- class quart.testing.connections.TestWebsocketConnection(app: Quart, scope: WebsocketScope)#
基类:
object- 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#
- exception quart.testing.connections.WebsocketDisconnectError#
基类:
Exception