Skip to main content

GetHeader

Trait GetHeader 

Source
pub trait GetHeader<'x> {
    // Required methods
    fn header_value(&self, name: &HeaderName<'_>) -> Option<&HeaderValue<'x>>;
    fn header(&self, name: impl Into<HeaderName<'x>>) -> Option<&Header<'x>>;
}

Required Methods§

Source

fn header_value(&self, name: &HeaderName<'_>) -> Option<&HeaderValue<'x>>

Source

fn header(&self, name: impl Into<HeaderName<'x>>) -> Option<&Header<'x>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'x> GetHeader<'x> for Vec<Header<'x>>

Source§

fn header_value(&self, name: &HeaderName<'_>) -> Option<&HeaderValue<'x>>

Source§

fn header(&self, name: impl Into<HeaderName<'x>>) -> Option<&Header<'x>>

Implementors§