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