百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

reqwest-middleware

> 编程语言
开源

环绕回向以允许客户端中间软件链.

380 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

环绕回向以允许客户端中间软件链.

reqwest-middleware

A crate implementing a wrapper around reqwest to allow for client middleware chains. This crate provides functionality for building and running middleware but no middleware implementations. This repository also contains a couple of useful concrete middleware crates:

  • reqwest-retry: retry failed requests.
  • reqwest-tracing: tracing integration, optional opentelemetry support.

Note about browser support: automated tests targeting wasm are disabled. The crate may work with wasm but wasm support is unmaintained. PRs improving wasm are still welcome but you'd need to reintroduce the tests and get them passing before we'd merge it (see https://github.com/TrueLayer/reqwest-middleware/pull/105).

Overview

The reqwest-middleware client exposes the same interface as a plain reqwest client, but ClientBuilder exposes functionality to attach middleware:

toml
# Cargo.toml
# ...
[dependencies]
reqwest = "0.13"
reqwest-middleware = "0.5"
reqwest-retry = "0.9"
reqwest-tracing = "0.6"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
…

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Third-party middleware

The following third-party middleware use reqwest-middleware:

  • reqwest-conditional-middleware - Per-request basis middleware
  • http-cache - HTTP caching rules
  • reqwest-cache - HTTP caching
  • aliri_reqwest - Background token management and renewal
  • http-signature-normalization-reqwest - HTTP Signatures
  • reqwest-chain - Apply custom criteria to any reqwest response, deciding when and how to retry.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言