| Crates.io | axum-forwarded-header |
| lib.rs | axum-forwarded-header |
| version | 0.1.0 |
| created_at | 2024-01-07 03:39:48.74076+00 |
| updated_at | 2024-01-07 03:39:48.74076+00 |
| description | Parser for the 'Forwarded' HTTP header |
| homepage | https://github.com/yaleman/axum_forwarded_header/ |
| repository | https://github.com/yaleman/axum_forwarded_header/ |
| max_upload_size | |
| id | 1091437 |
| size | 14,199 |
Functionality for parsing the "Forwarded" header into a struct you can get info from.
Per RFC7239 Section 4.
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.