Module v1

Expand description

Version 1 of the HAProxy protocol (text version).

See https://haproxy.org/download/1.8/doc/proxy-protocol.txt

Structs§

Header
A text PROXY protocol header that borrows the input string.
IPv4
The source and destination IPv4 addresses and TCP ports of a header.
IPv6
The source and destination IPv6 addresses and TCP ports of a header.

Enums§

Addresses
The source and destination of a header. Includes IP (v4 or v6) addresses and TCP ports.
BinaryParseError
An error in parsing a text PROXY protocol header that is represented as a byte slice.
ParseError
An error in parsing a text PROXY protocol header.

Constants§

PROTOCOL_PREFIX
The prefix of the PROXY protocol header.
PROTOCOL_SUFFIX
The suffix of the PROXY protocol header.
SEPARATOR
The separator of the header parts.
TCP4
TCP protocol with IPv4 address family.
TCP6
TCP protocol with IPv6 address family.
UNKNOWN
Unknown protocol and address family. Address portion of the header should be ignored.