RequestExt

Trait RequestExt 

Source
pub trait RequestExt {
    // Required methods
    fn host(&self) -> &str;
    fn path(&self) -> &str;
    fn url(&self) -> &Uri;
    fn header<H: TryInto<HeaderName>>(&self, h: H) -> Option<&HeaderValue>;
    fn header_str<H: TryInto<HeaderName>>(&self, h: H) -> Option<&str>;
}

Required Methods§

Source

fn host(&self) -> &str

Source

fn path(&self) -> &str

Source

fn url(&self) -> &Uri

Source

fn header<H: TryInto<HeaderName>>(&self, h: H) -> Option<&HeaderValue>

Source

fn header_str<H: TryInto<HeaderName>>(&self, h: H) -> Option<&str>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§