pub struct RequestParts<'r> { /* private fields */ }Expand description
Represents an HTTP request.
Implementations§
Source§impl<'r> RequestParts<'r>
impl<'r> RequestParts<'r>
Sourcepub const fn query(&self) -> Option<UrlEncodedString<'r>>
pub const fn query(&self) -> Option<UrlEncodedString<'r>>
Return the query section of the request URL, i.e. everything after the “?”
Sourcepub const fn fragments(&self) -> Option<UrlEncodedString<'r>>
pub const fn fragments(&self) -> Option<UrlEncodedString<'r>>
Return the fragments of the request URL, i.e. everything after the “#”
Sourcepub const fn http_version(&self) -> &'r str
pub const fn http_version(&self) -> &'r str
Return the HTTP version as sent by the client
Trait Implementations§
Source§impl<'r> Clone for RequestParts<'r>
impl<'r> Clone for RequestParts<'r>
Source§fn clone(&self) -> RequestParts<'r>
fn clone(&self) -> RequestParts<'r>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'r> Debug for RequestParts<'r>
impl<'r> Debug for RequestParts<'r>
impl<'r> Copy for RequestParts<'r>
Auto Trait Implementations§
impl<'r> Freeze for RequestParts<'r>
impl<'r> RefUnwindSafe for RequestParts<'r>
impl<'r> Send for RequestParts<'r>
impl<'r> Sync for RequestParts<'r>
impl<'r> Unpin for RequestParts<'r>
impl<'r> UnwindSafe for RequestParts<'r>
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