axum-forwarded-header

Crates.ioaxum-forwarded-header
lib.rsaxum-forwarded-header
version0.1.0
sourcesrc
created_at2024-01-07 03:39:48.74076
updated_at2024-01-07 03:39:48.74076
descriptionParser for the 'Forwarded' HTTP header
homepagehttps://github.com/yaleman/axum_forwarded_header/
repositoryhttps://github.com/yaleman/axum_forwarded_header/
max_upload_size
id1091437
size14,199
James Hodgkinson (yaleman)

documentation

README

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.

Commit count: 0

cargo fmt