Skip to main content

Module connection

Module connection 

Source
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

  1. Optional TLS handshake (feature-gated)
  2. HTTP/1 connection setup via Hyper
  3. Request conversion to canonical types
  4. Request-policy validation (body rejection for body-forbidden methods)
  5. Service invocation with panic containment
  6. Canonical response normalization
  7. Transport-body conversion
  8. 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 Service implementation.