Struct hyper::client::response::Response [] [src]

pub struct Response {
    pub status: StatusCode,
    pub headers: Headers,
    pub version: HttpVersion,
    pub url: Url,
    // some fields omitted
}

A response for a client request to a remote server.

Fields

The status from the server.

The headers from the server.

The HTTP version of this response from the server.

The final URL of this response.

Methods

impl Response
[src]

Creates a new response from a server.

Creates a new response received from the server on the given HttpMessage.

Get the raw status code and reason.

Trait Implementations

impl Debug for Response
[src]

Formats the value using the given formatter.

impl Read for Response
[src]

Read the response body.

Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more

Read all bytes until EOF in this source, placing them into buf. Read more

Read all bytes until EOF in this source, placing them into buf. Read more

Read the exact number of bytes required to fill buf. Read more

Creates a "by reference" adaptor for this instance of Read. Read more

Transforms this Read instance to an Iterator over its bytes. Read more

Unstable (io)

: the semantics of a partial read/write of where errors happen is currently unclear and may change

Transforms this Read instance to an Iterator over chars. Read more

Creates an adaptor which will chain this stream with another. Read more

Creates an adaptor which will read at most limit bytes from it. Read more

impl Drop for Response
[src]

A method called when the value goes out of scope. Read more