hypercorn.protocol.http_stream module

class hypercorn.protocol.http_stream.ASGIHTTPState(value)

Bases: enum.Enum

An enumeration.

CLOSED = 3
REQUEST = 1
RESPONSE = 2
class hypercorn.protocol.http_stream.HTTPStream(app: Union[Type[hypercorn.typing.ASGI2Protocol], Callable[[dict, Callable, Callable], Awaitable[None]]], config: hypercorn.config.Config, context: hypercorn.typing.Context, ssl: bool, client: Optional[Tuple[str, int]], server: Optional[Tuple[str, int]], send: Callable[[hypercorn.protocol.events.Event], Awaitable[None]], stream_id: int)

Bases: object

async app_send(message: Optional[dict]) → None
async handle(event: hypercorn.protocol.events.Event) → None
property idle