pub struct Response<B> { /* private fields */ }
Expand description

HTTP 响应

封装 HTTP 响应相关字段

Implementations

返回 HTTP 响应构建器

获取 HTTP 响应体

获取 HTTP 响应体的可变引用

HTTP 响应信息

获取 HTTP 响应信息的可变引用

转换为 HTTP 响应体

转换为响应信息和响应体

通过响应信息和响应体创建 HTTP 响应

对 HTTP 响应体进行映射

尝试对 HTTP 响应体进行映射

尝试对 HTTP 响应体进行异步映射

Methods from Deref<Target = ResponseParts>

获取 HTTP 状态码

获取 HTTP 状态码 的可变引用

获取 HTTP Headers

获取 HTTP Headers 的可变引用

获取 HTTP 版本

获取 HTTP 版本的可变引用

获取 扩展信息

获取扩展信息的可变引用

获取 HTTP 响应 Header

获取 HTTP 服务器 IP 地址

获取 HTTP 服务器 IP 地址的可变引用

获取 HTTP 服务器端口号

获取 HTTP 服务器端口号的可变引用

获取 HTTP 响应的指标信息

获取 HTTP 响应的指标信息的可变引用

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

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.

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.