Requests and responses as asyncio code sees them (Effect's Web
Request and Response): what web_handler handlers take and
return, and what the ASGI adapter speaks.
A body is bytes, an async iterable of bytes (read once) or
None. Header names are lowercase; repeated request headers are joined
with ", ", and only set-cookie repeats in a response.
Types#
| Type | Definition | Description |
|---|---|---|
WebBody | type WebBody = bytes | AsyncIterable[bytes] | None | |
HeaderLines | type HeaderLines = Mapping[str, str] | Iterable[tuple[str, str]] |