Struct requests::response::Response [] [src]

pub struct Response {
    // some fields omitted
}

Methods

impl<'a> Response
[src]

fn url(&self) -> &str

fn status_code(&self) -> StatusCode

fn reason(&self) -> &str

fn ok(&self) -> bool

fn text(&'a self) -> Option<&'a str>

fn json(&self) -> Option<String>

fn from_json<T>(&self) -> Option<T> where T: Deserialize

fn is_json(&self) -> bool

Trait Implementations

impl Debug for Response
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<HyperResponse> for Response
[src]

fn from(raw: HyperResponse) -> Self

Performs the conversion.