为更高层的 HTTP 客户端提供基础 HTTP 请求接口 HttpCaller
(同时提供阻塞接口和异步接口,异步接口则需要启用 async
功能),
使不同的 HTTP 客户端基于相同的接口实现,
以便于七牛 API 调用层可以灵活切换 HTTP 客户端实现。
该接口库只关注 HTTP 调用相关逻辑,不包含七牛 API 调用相关逻辑。
toml
[dependencies]
qiniu-http = "0.1.4"
toml
[dependencies]
qiniu-http = { version = "0.1.4", features = ["async"] }
1.60.0
This project is licensed under the [MIT license].