Skip to main content

IntoSecurityHeader

Trait IntoSecurityHeader 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§