pub trait IntoSecurityHeader {
// Required method
fn into_header(self) -> (HeaderName, HeaderValue);
}Expand description
Converts a header type into a (HeaderName, HeaderValue) pair.
All header types in this module implement this trait, allowing them to be
passed to SecurityHeaders::add and SecurityHeaders::try_add.
Required Methods§
fn into_header(self) -> (HeaderName, HeaderValue)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".