Expand description
Connection execution pipeline.
This module owns the per-connection execution path from TCP accept to response completion. It is used by both the CLI accept loop and the embedded runtime.
§Pipeline steps
- Optional TLS handshake (feature-gated)
- HTTP/1 connection setup via Hyper
- Request conversion to canonical types
- Request-policy validation (body rejection for body-forbidden methods)
- Service invocation with panic containment
- Canonical response normalization
- Transport-body conversion
- Permit release and connection termination
Functions§
- serve_
connection - Serve a single HTTP/1.1 connection.
- serve_
connection_ with_ runtime_ state - Serve a single connection with a custom
Serviceimplementation.