Module proxy_protocol

Source

Constantsยง

READ_BUFFER_LEN ๐Ÿ”’
The length of the read buffer used to read the PROXY protocol header.
V1_MAX_LENGTH ๐Ÿ”’
The maximum length of a v1 header in bytes.
V1_PREFIX_LEN ๐Ÿ”’
The length of a v1 header in bytes.
V1_TERMINATOR ๐Ÿ”’
The terminator bytes of a v1 header.
V2_LENGTH_INDEX ๐Ÿ”’
The index of the start of the big-endian u16 length in the v2 header.
V2_MINIMUM_LEN ๐Ÿ”’
The minimum length of a v2 header in bytes.
V2_PREFIX_LEN ๐Ÿ”’
The prefix length of a v2 header in bytes.

Functionsยง

read_proxy_header
Reads the PROXY protocol header from the given AsyncRead.
read_v1_header ๐Ÿ”’
read_v2_header ๐Ÿ”’