pub struct ClientResponse(_, _);
Expand description

An HTTP Client response

Implementations

Get the HTTP version of this response.

Get the status from the server.

Load response cookies.

Return request cookie.

Trait Implementations

Formats the value using the given formatter. Read more

Create HttpResponseBuilder from ClientResponse

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

Converts to this type from the input type.

Get the headers from the response.

Type of message payload stream
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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.