[][src]Struct actix_web::client::ClientResponse

pub struct ClientResponse(_, _);

An HTTP Client response

Methods

impl ClientResponse
[src]

Get the HTTP version of this response.

Get the status from the server.

Load response cookies.

Return request cookie.

Trait Implementations

impl HttpMessage for ClientResponse
[src]

Type of message payload stream

Get the headers from the response.

Message payload stream

Read the request content type. If request does not contain Content-Type header, empty str get returned. Read more

Get content type encoding Read more

Convert the request content type to a known mime type.

Check if request has chunked transfer encoding

Load http message body. Read more

Parse application/x-www-form-urlencoded encoded request's body. Return UrlEncoded future. Form can be deserialized to any type that implements Deserialize trait from serde. Read more

Parse application/json encoded body. Return JsonBody<T> future. It resolves to a T value. Read more

Return stream to http payload processes as multipart. Read more

Return stream of lines.

impl<'a> From<&'a ClientResponse> for HttpResponseBuilder
[src]

Create HttpResponseBuilder from ClientResponse

It is useful for proxy response. This implementation copies all responses's headers and status.

Performs the conversion.

impl Debug for ClientResponse
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for ClientResponse

impl !Sync for ClientResponse

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T