pub trait HeaderConverter {
type HeaderType;
// Required method
fn to_generic_headers(headers: &Self::HeaderType) -> Headers;
}Expand description
Trait for converting framework-specific request headers into the generic
Headers type.
Required Associated Types§
Sourcetype HeaderType
type HeaderType
The framework’s native header type (e.g. axum::http::HeaderMap).
Required Methods§
Sourcefn to_generic_headers(headers: &Self::HeaderType) -> Headers
fn to_generic_headers(headers: &Self::HeaderType) -> Headers
Convert framework headers to generic Vec<(String, String)>.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".