harp.asgi.bridge.streams

Inheritance diagram of harp.asgi.bridge.streams

class AsyncStreamFromAsgiReceive[source]

Bases: AsyncByteStream

__init__(asgi_receive)[source]
Parameters:

asgi_receive (Callable[[], Awaitable[HTTPRequestEvent | HTTPDisconnectEvent | WebSocketConnectEvent | WebSocketReceiveEvent | WebSocketDisconnectEvent | LifespanStartupEvent | LifespanShutdownEvent]])

Return type:

None

async aclose()[source]
Return type:

None