1 unstable release

0.1.0 Jan 7, 2024

#1009 in HTTP server

MPL-2.0 license

6KB
69 lines

axum-forwarded-header

Functionality for parsing the "Forwarded" header into a struct you can get info from.

Per RFC7239 Section 4.

Usage

Either build the struct manually, or parse a HeaderValue from the http crate using .try_from(). It exposes use TryFrom instead of From because there's a to_str it needs to do and I'd rather not put an expect() call into.

See the tests for examples.

Dependencies

~3–4MB
~77K SLoC