Skip to main content

Module proxy_protocol

Module proxy_protocol 

Source
Expand description

HAProxy PROXY protocol v2 state surface plus the legacy v1 header model.

Runtime expect, relay and send states use v2 only; v1 is not accepted on the wire.

Three distinct session roles compose into the front-end pipeline: expect ingests an inbound v2 header and hands off to the downstream protocol; relay forwards an existing v2 header verbatim onto a new backend connection; send synthesises a v2 header before user bytes. header and parser own the wire format. Long-form lifecycle: lib/src/protocol/proxy_protocol/LIFECYCLE.md (created in this changeset).

Modulesยง

expect
Inbound PROXY-v2 expectation state.
header
PROXY protocol v1 / v2 header model.
parser
PROXY-v2 wire parser.
relay
PROXY-v2 relay state.
send
PROXY-v2 send state.