Module rama::proxy::haproxy::protocol::v2

Expand description

Version 2 of the HAProxy protocol (binary version).

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

Structs§

  • Implementation of the builder pattern for PROXY protocol v2 headers. Supports both valid and invalid headers via the write_payload and write_payloads functions.
  • A proxy protocol version 2 header.
  • The source and destination IPv4 addresses and TCP ports of a header.
  • The source and destination IPv6 addresses and TCP ports of a header.
  • A Type-Length-Value payload.
  • An Iterator of TypeLengthValues stored in a byte slice.
  • The source and destination addresses of UNIX sockets.
  • Write interface for the builder’s internal buffer. Can be used to turn header parts into bytes.

Enums§

  • The supported AddressFamily for a PROXY protocol header.
  • The source and destination address information for a given AddressFamily.
  • The supported Commands for a PROXY protocol header.
  • An error in parsing a binary PROXY protocol header.
  • The supported Protocols for a PROXY protocol header.
  • Supported types for TypeLengthValue payloads.
  • The supported Versions for binary headers.

Constants§

Traits§

  • Defines how to write a type as part of a binary PROXY protocol header.