Struct requests::response::Response
[−]
[src]
pub struct Response { /* 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 content(&'a self) -> &'a Vec<u8>
fn json(&self) -> JsonResult<JsonValue>
fn is_json(&self) -> bool
Trait Implementations
impl Debug for Response
[src]
impl From<HyperResponse> for Response
[src]
fn from(raw: HyperResponse) -> Self
Performs the conversion.