[][src]Struct rttp_client::response::Response

pub struct Response { /* fields omitted */ }

Methods

impl Response[src]

pub fn new(url: RoUrl, binary: Vec<u8>) -> Result<Self>[src]

impl Response[src]

pub fn ok(&self) -> bool[src]

pub fn is_redirect(&self) -> bool[src]

pub fn code(&self) -> u32[src]

pub fn version(&self) -> &String[src]

pub fn reason(&self) -> &String[src]

pub fn host(&self) -> &str[src]

pub fn body(&self) -> &ResponseBody[src]

pub fn binary(&self) -> &[u8][src]

pub fn location(&self) -> Option<&String>[src]

pub fn headers(&self) -> &Vec<Header>[src]

pub fn headers_of_name<S: AsRef<str>>(&self, name: S) -> Vec<&Header>[src]

pub fn header<S: AsRef<str>>(&self, name: S) -> Option<&Header>[src]

pub fn header_values<S: AsRef<str>>(&self, name: S) -> Vec<&String>[src]

pub fn header_value<S: AsRef<str>>(&self, name: S) -> Option<&String>[src]

pub fn cookies(&self) -> &Vec<Cookie>[src]

pub fn cookie<S: AsRef<str>>(&self, name: S) -> Option<&Cookie>[src]

Trait Implementations

impl Clone for Response[src]

impl Display for Response[src]

impl Debug for Response[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,