Skip to main content

Module handler

Module handler 

Source
Expand description

Handler trait — the L4/L7 plug-in point between the transport engine and protocol logic (HTTP parsing/routing lives above this; L4 splice below).

Structs§

SessionIo
Handler-facing control surface for one session.

Enums§

DeadlineReason
Why a session deadline fired — handlers branch on this to decide between closing idle conns and failing in-flight requests.
Mode
Proxy mode a handler serves (chosen per listener).
UpstreamDial
Outcome of an upstream dial.

Traits§

Handler
Per-connection handler. One instance is shared by all sessions of a worker (single-threaded dispatch; per-connection state lives in the session, reached through SessionIo).
HandlerFactory
Builds a Handler for each worker.