Crate qiniu_http

source ·
Expand description

qiniu-http

七牛 HTTP 客户端接口库

为更高层的 HTTP 客户端提供基础 HTTP 请求接口 HttpCaller(同时提供阻塞接口和异步接口,异步接口则需要启用 async 功能), 使不同的 HTTP 客户端基于相同的接口实现, 以便于七牛 API 调用层可以灵活切换 HTTP 客户端实现。 该接口库只关注 HTTP 调用相关逻辑,不包含七牛 API 调用相关逻辑。

Modules

HTTP header types
将所有 Trait 全部重新导出,方便统一导入
URI component of request and response lines

Structs

异步 HTTP 请求体
异步 HTTP 响应体
A type map of protocol extensions.
A set of HTTP headers
Represents an HTTP header field name
Represents an HTTP header field value.
A possible error when converting a HeaderName from another type.
A possible error when converting a HeaderValue from a string or byte slice.
A possible error value when converting Method from bytes.
A possible error value when converting a StatusCode from a u16 or &str
响应映射错误
The Request Method (VERB)
HTTP 响应的指标信息
HTTP 响应的指标信息构建器
HTTP 请求
HTTP 请求构建器
HTTP 请求信息
HTTP 请求信息构建器
HTTP 响应
HTTP 响应体构建器
HTTP 响应错误
HTTP 响应错误构建器
HTTP 响应信息
An HTTP status code (status-code in RFC 7230 et al.).
HTTP 请求体
HTTP 响应体
数据传输进度信息
The URI component of a request.
UserAgent 信息
Represents a version of the HTTP spec.

Enums

接受到响应 Header 回调
上传进度回调
响应状态回调
HTTP 响应错误类型

Traits

Read bytes asynchronously.
异步重置输入流接口
Seek bytes asynchronously.
HTTP 请求处理接口
重置输入流接口

Functions

全局设置库 UserAgent

Type Definitions

异步 HTTP 响应
异步 HTTP 响应构建器
异步 HTTP 响应
异步 HTTP 响应构建器
异步 HTTP 响应结果
HTTP 响应结果
阻塞 HTTP 响应
阻塞 HTTP 响应构建器
阻塞 HTTP 响应
阻塞 HTTP 响应构建器
阻塞 HTTP 响应结果