pub struct HttpResponse<IO: AsyncRead + AsyncWrite + Unpin> { /* private fields */ }

Implementations

Access the original requests headers as http::HeaderMap.

Access the original requests uri as http::Uri.

Return the original requests method as http::Method.

Return the HTTP version as http::Version.

Access the currently set response headers as http::HeaderMap.

Access the currently set response headers as mutable http::HeaderMap.

Insert a response header (chainable).

Access the currently set response status as http::StatusCode.

Access the currently set response status as mutable http::StatusCode.

Set the response status (chainable).

Send the request with the specified body.

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.