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

HTTP 请求

封装 HTTP 请求相关字段

Implementations

创建 HTTP 请求构建器

获取请求体

获取请求体的可变引用

转换为 HTTP 请求体

获取请求信息

获取请求信息的可变引用

转换为请求信息和请求体

通过请求信息和请求体创建 HTTP 请求

Methods from Deref<Target = RequestParts<'r>>

获取 HTTP 请求 URL

获取 HTTP 请求 URL 的可变引用

获取请求 HTTP 版本

获取请求 HTTP 版本的可变引用

获取请求 HTTP 方法

获取请求 HTTP 方法的可变引用

获取请求 HTTP Headers

获取请求 HTTP Headers 的可变引用

获取扩展信息

获取扩展信息的可变引用

获取 UserAgent

获取追加的 UserAgent

获取追加的 UserAgent 的可变引用

获取预解析的服务器套接字地址

获取预解析的服务器套接字地址的可变引用

获取上传进度回调

获取上传进度回调的可变引用

获取接受到响应状态回调

获取接受到响应状态回调的可变引用

获取接受到响应 Header 回调

获取接受到响应 Header 回调的可变引用

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.