Trait embedded_svc::http::Headers

source ·
pub trait Headers {
    // Required method
    fn header(&self, name: &str) -> Option<&str>;

    // Provided methods
    fn content_type(&self) -> Option<&str> { ... }
    fn content_len(&self) -> Option<u64> { ... }
    fn content_encoding(&self) -> Option<&str> { ... }
    fn transfer_encoding(&self) -> Option<&str> { ... }
    fn host(&self) -> Option<&str> { ... }
    fn connection(&self) -> Option<&str> { ... }
    fn cache_control(&self) -> Option<&str> { ... }
    fn upgrade(&self) -> Option<&str> { ... }
}

Required Methods§

source

fn header(&self, name: &str) -> Option<&str>

Provided Methods§

source

fn content_type(&self) -> Option<&str>

source

fn content_len(&self) -> Option<u64>

source

fn content_encoding(&self) -> Option<&str>

source

fn transfer_encoding(&self) -> Option<&str>

source

fn host(&self) -> Option<&str>

source

fn connection(&self) -> Option<&str>

source

fn cache_control(&self) -> Option<&str>

source

fn upgrade(&self) -> Option<&str>

Implementations on Foreign Types§

source§

impl<H> Headers for &H
where H: Headers,

source§

fn header(&self, name: &str) -> Option<&str>

source§

impl<H> Headers for &mut H
where H: Headers,

source§

fn header(&self, name: &str) -> Option<&str>

Implementors§

source§

impl<'b, const N: usize> Headers for Headers<'b, N>

source§

impl<C> Headers for embedded_svc::http::client::asynch::Response<C>
where C: Connection,

source§

impl<C> Headers for embedded_svc::http::client::Response<C>
where C: Connection,

source§

impl<C> Headers for embedded_svc::http::server::asynch::Request<C>
where C: Connection,

source§

impl<C> Headers for embedded_svc::http::server::Request<C>
where C: Connection,