Classes
ParseError
0
▼
Raised when the request is malformed and the connection should close.
ParseError
0
▼
Raised when the request is malformed and the connection should close.
Functions
parse_request
2
tuple[RequestReceived | …
▼
Parse an HTTP request from a buffer.
parse_request
2
tuple[RequestReceived | …
▼
def parse_request(buf: memoryview, length: int) -> tuple[RequestReceived | None, bytes, int, bool]
Parameters
| Name | Type | Description |
|---|---|---|
buf |
memoryview |
|
length |
int |
Returns
tuple[RequestReceived | None, bytes, int, bool]