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