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