pub struct RequestBuilder<'r, B> { /* private fields */ }
Expand description

HTTP 请求构建器

Implementations

创建 HTTP 请求构建器

设置请求 URL

设置请求 HTTP 方法

设置请求 HTTP 版本

设置请求 HTTP Headers

设置请求 HTTP 请求体

设置扩展信息

追加扩展信息

设置 UserAgent

设置预解析的服务器套接字地址

设置上传进度回调

设置接受到响应状态回调

设置接受到响应 Header 回调

构建 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.