2 releases

0.1.2 Jul 14, 2024
0.1.1 Jul 14, 2024
0.1.0 Nov 17, 2023

#1061 in Network programming

Download history 174/week @ 2024-08-03 255/week @ 2024-08-10 195/week @ 2024-08-17 103/week @ 2024-08-24 123/week @ 2024-08-31 401/week @ 2024-09-07 3055/week @ 2024-09-14 2142/week @ 2024-09-21 2520/week @ 2024-09-28 2966/week @ 2024-10-05 2910/week @ 2024-10-12 2742/week @ 2024-10-19 2806/week @ 2024-10-26 2433/week @ 2024-11-02 3255/week @ 2024-11-09 2254/week @ 2024-11-16

11,269 downloads per month
Used in rs-proxy

MIT license

70KB
1.5K SLoC

proxy-header

Crates.io MIT licensed Build Status

This crate provides a decoder and encoder for the HAProxy PROXY protocol, which is used to preserve original client connection information when proxying TCP connections for protocols that do not support this higher up in the stack.

The PROXY protocol is supported by many load balancers and proxies, including HAProxy, Amazon ELB, Amazon ALB, and others.

This crate implements the entire specification, except parsing the AF_UNIX address type (the header is validated / parsed, but the address is not decoded or exposed in the API).

Acknowledgements

This crate started as a fork of the proxy-protocol crate, but has since been rewritten from scratch.

License

This crate is licensed under the MIT license. See the LICENSE file for details.

Dependencies

~0–5.5MB
~20K SLoC