pub struct Request { /* private fields */ }
Expand description
Stores a HTTP request
Implementations§
source§impl Request
impl Request
sourcepub fn path_and_query(&self) -> &str
pub fn path_and_query(&self) -> &str
The path including the query part
sourcepub fn header<T: AsHeaderName>(&self, header_name: T) -> Vec<&HeaderValue>
pub fn header<T: AsHeaderName>(&self, header_name: T) -> Vec<&HeaderValue>
Retrieves all the header values for the given header field name
sourcepub fn has_header<T: AsHeaderName>(&self, header_name: T) -> bool
pub fn has_header<T: AsHeaderName>(&self, header_name: T) -> bool
Checks whether the provided header field exists
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl !UnwindSafe for Request
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more