[−][src]Struct mini_async_http::Request
Represent an http request.
Implementations
impl Request
[src]
pub fn method(&self) -> &Method
[src]
Return the request Method
pub fn path(&self) -> &String
[src]
Return the target path of the request
pub fn version(&self) -> &Version
[src]
Return the HTTP version of the request
pub fn headers(&self) -> &Headers
[src]
Return the headers of the request
pub fn body(&self) -> Option<&Vec<u8>>
[src]
Return the body of the request as byte vector
pub fn body_as_string(&self) -> Option<String>
[src]
Return the body of the request interpreted as utf 8 string
Trait Implementations
impl Debug for Request
[src]
impl Display for Request
[src]
impl PartialEq<Request> for Request
[src]
impl StructuralPartialEq for Request
[src]
impl<'_> TryFrom<&'_ [u8]> for Request
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,