hypercorn.protocol.events module

class hypercorn.protocol.events.Body(stream_id: int, data: bytes)

Bases: hypercorn.protocol.events.Event

data: bytes
class hypercorn.protocol.events.Data(stream_id: int, data: bytes)

Bases: hypercorn.protocol.events.Event

data: bytes
class hypercorn.protocol.events.EndBody(stream_id: int)

Bases: hypercorn.protocol.events.Event

stream_id: int
class hypercorn.protocol.events.EndData(stream_id: int)

Bases: hypercorn.protocol.events.Event

stream_id: int
class hypercorn.protocol.events.Event(stream_id: int)

Bases: object

stream_id: int
class hypercorn.protocol.events.Request(stream_id: int, headers: List[Tuple[bytes, bytes]], http_version: str, method: str, raw_path: bytes)

Bases: hypercorn.protocol.events.Event

headers: List[Tuple[bytes, bytes]]
http_version: str
method: str
raw_path: bytes
class hypercorn.protocol.events.Response(stream_id: int, headers: List[Tuple[bytes, bytes]], status_code: int)

Bases: hypercorn.protocol.events.Event

headers: List[Tuple[bytes, bytes]]
status_code: int
class hypercorn.protocol.events.StreamClosed(stream_id: int)

Bases: hypercorn.protocol.events.Event

stream_id: int