Expand description
Session — the sans-I/O glue between a socket’s byte stream and a response.
A Session owns an HTTP protocol engine (HTTP/1.x, or HTTP/2 when the TLS
client negotiates h2 via ALPN), an optional TLS transport, and the shared
Handler. Runtimes feed it the bytes that arrive on a socket and write
back the bytes it produces; the session decrypts, parses, invokes the
handler (with optional compression), serializes, and re-encrypts. It
performs no I/O itself.
Structs§
- Session
- A single HTTP(S) connection in progress.
- Session
Config - Shared, per-server settings a
Sessionneeds. Cheap to clone.