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

HTTP 响应体构建器

Implementations

设置 HTTP 状态码

设置 HTTP Headers

设置 HTTP 版本

设置 HTTP 服务器 IP 地址

设置 HTTP 服务器端口号

设置扩展信息

添加 HTTP Header

添加 HTTP 响应体

设置 HTTP 响应的指标信息

构建 HTTP 请求

Trait Implementations

Formats the value using the given formatter. Read more

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

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.