hypercorn.protocol package

Module contents

class hypercorn.protocol.ProtocolWrapper(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.events.Event], Awaitable[None]], alpn_protocol: Optional[str] = None)

Bases: object

async handle(event: hypercorn.events.Event) → None
property idle
async initiate() → None