Skip to main content

Module header

Module header 

Source
Expand description

PROXY protocol v1 / v2 header model.

Owns the ProxyProtocolHeader enum, the into_bytes serializers for both wire versions, and the address helpers (ProxyAddr, ProtocolSupportedV1, Command, HeaderV1, HeaderV2) shared by the expect, relay, and send roles. No I/O here; pure data shapes.

Structs§

HeaderV1
WARNING: proxy protocol v1 is never used in Sōzu, only v2. The tests have been commented out, the whole code may be meant for deletion.
HeaderV2

Enums§

Command
ProtocolSupportedV1
Indicate the proxied INET protocol and family
ProxyAddr
ProxyProtocolHeader