Trait RequestExt

Source
pub trait RequestExt<B>
where B: BodyTrait,
{
Show 13 methods // Required methods fn is_get(&self) -> bool; fn is_head(&self) -> bool; fn is_put(&self) -> bool; fn is_post(&self) -> bool; fn is_delete(&self) -> bool; fn is_patch(&self) -> bool; fn is_options(&self) -> bool; fn uri_path(&self) -> &str; fn uri_query(&self) -> Option<&str>; fn header(&self, _name: impl AsHeaderName) -> Option<&HeaderValue>; fn header_all(&self, _name: impl AsHeaderName) -> GetAll<'_, HeaderValue>; // Provided methods fn header_str(&self, _name: impl AsHeaderName) -> Option<&str> { ... } fn header_host(&self) -> Option<&str> { ... }
}

Required Methods§

Source

fn is_get(&self) -> bool

Source

fn is_head(&self) -> bool

Source

fn is_put(&self) -> bool

Source

fn is_post(&self) -> bool

Source

fn is_delete(&self) -> bool

Source

fn is_patch(&self) -> bool

Source

fn is_options(&self) -> bool

Source

fn uri_path(&self) -> &str

Source

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

Source

fn header(&self, _name: impl AsHeaderName) -> Option<&HeaderValue>

Source

fn header_all(&self, _name: impl AsHeaderName) -> GetAll<'_, HeaderValue>

Provided Methods§

Source

fn header_str(&self, _name: impl AsHeaderName) -> Option<&str>

Source

fn header_host(&self) -> 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§

Source§

impl<B> RequestExt<B> for Request<B>
where B: BodyTrait,