|
DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
|
HAProxy PROXY protocol codec (DETWS_ENABLE_PROXY_PROTOCOL) - zero-heap parser + builder for the v1 (text) and v2 (binary) headers a load balancer / proxy prepends, so the server can recover the real client IPv4 when it sits behind one. More...
#include "ServerConfig.h"Go to the source code of this file.
HAProxy PROXY protocol codec (DETWS_ENABLE_PROXY_PROTOCOL) - zero-heap parser + builder for the v1 (text) and v2 (binary) headers a load balancer / proxy prepends, so the server can recover the real client IPv4 when it sits behind one.
The header is sent once, before the proxied stream:
PROXY TCP4 <src-ip> <dst-ip> <src-port> <dst-port>\r\n (space-separated, CRLF-terminated; also PROXY TCP6 ... and PROXY UNKNOWN\r\n).This codec handles TCP/IPv4 (the library's address family); IPv6 / UNIX / LOCAL headers parse to their length but yield no addresses. Format per the HAProxy PROXY protocol spec.
Definition in file proxy_protocol.h.