aioduct 0.2.5

Async-native HTTP client built directly on hyper 1.x — no hyper-util, no legacy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
# aioduct

[![Crates.io](https://img.shields.io/crates/v/aioduct.svg)](https://crates.io/crates/aioduct)
[![docs.rs](https://docs.rs/aioduct/badge.svg)](https://docs.rs/aioduct)
[![CI](https://github.com/adamcavendish/aioduct/actions/workflows/ci.yml/badge.svg)](https://github.com/adamcavendish/aioduct/actions/workflows/ci.yml)
[![License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](LICENSE-MIT)
[![MSRV: 1.95](https://img.shields.io/badge/MSRV-1.95-brightgreen.svg)](https://blog.rust-lang.org/2026/04/16/Rust-1.95.0/)

Async-native Rust HTTP client built directly on **hyper 1.x** — no hyper-util, no legacy APIs.

[Documentation]https://adamcavendish.github.io/aioduct/ | [API Reference]https://docs.rs/aioduct | [Crates.io]https://crates.io/crates/aioduct

## Why aioduct?

- **reqwest** depends on hyper-util's `legacy::Client`, wrapping hyper 0.x-style patterns over hyper 1.x with years of backwards-compatibility baggage.
- **hyper-util** labels its own client as "legacy" — the hyper team acknowledges it's not the long-term answer.
- **hyper 1.x** provides clean connection-level primitives, but no production client uses them directly.

aioduct uses hyper 1.x **the way it was intended** — as a protocol engine you drive yourself, with your own connection pool, TLS, and runtime integration.

## Features

- **No hyper-util** — custom IO adapters and executor directly against `hyper::rt` traits
- **Multi-runtime** — tokio, smol, and compio (io_uring) via feature flags; compatible WASM browser/worker and WASI Preview 2 support
- **rustls TLS** — async handshake with ALPN-based HTTP/1.1 and HTTP/2 negotiation
- **Connection pooling** — keyed by scheme, authority, protocol hint, proxy route, forced transport address, and effective HTTP/3 endpoint, with idle timeout and per-host limits plus `pool_stats()` diagnostics (hit/miss/eviction counters and per-host idle/active inventory)
- **Redirect following** — RFC-compliant handling of 301/302/303/307/308 with sensitive header stripping and content header removal
- **Cookie jar** — automatic cookie storage, domain/path/subdomain matching, Max-Age and Expires expiration, Secure flag enforcement, SameSite (Strict/Lax/None), cookie prefixes (__Host-, __Secure-)
- **Timeouts** — client-level and per-request total, connect, read, and write timeouts, plus per-request timeout bypass
- **Retry** — configurable exponential backoff with retry budgets, Retry-After header support, 429 Too Many Requests retry, and custom retry classification
- **Decompression** — automatic gzip, brotli, zstd, deflate response decompression
- **Proxy** — HTTP CONNECT tunneling, HTTPS proxy, SOCKS4/SOCKS4a, SOCKS5 (local DNS), SOCKS5h (remote DNS), proxy chaining up to 2 hops, URI-embedded credentials, credential resolver, system proxy detection (HTTP_PROXY/HTTPS_PROXY/NO_PROXY)
- **Middleware** — pluggable request/response interceptors via trait or closure
- **Rate limiting** — token-bucket rate limiter for outgoing requests
- **Caching** — in-memory HTTP cache with immutable responses, stale-while-revalidate, stale-if-error (fallback on 5xx/connection failure); pluggable `CacheStore` trait for custom backends
- **HSTS** — automatic HTTP-to-HTTPS upgrade for Strict-Transport-Security domains
- **SSE** — Server-Sent Events stream parsing for LLM APIs
- **Multipart**`multipart/form-data` uploads with text fields and file parts
- **Streaming** — chunked downloads and streaming uploads without buffering
- **Chunk download** — parallel HTTP Range requests for large files
- **HTTP upgrade** — WebSocket and other protocol upgrades via HTTP/1.1 101 and HTTP/2 extended CONNECT (RFC 8441)
- **Request forwarding** — proxy/gateway builder via `client.forward(req)` that strips hop-by-hop headers, rewrites URIs, streams bodies, auto-detects WebSocket upgrades, supports H2 extended CONNECT tunneling, per-forward h2c for gRPC upstreams, and adaptive h2c/h1 fallback cached by effective route and endpoint
- **HTTP Message Signatures** — RFC 9421 request/response signing and verification, `Accept-Signature`, `Content-Digest`, trailer components, async signers, and forwarded message signing
- **Wasmtime host adapter** — host-owned WASI HTTP forwarding via `aioduct::wasmtime`, with Tokio, smol, and compio transports plus explicit header policy controls
- **Blocking client** — synchronous wrapper for non-async contexts (`BlockingTokioClient`, `BlockingSmolClient`, `BlockingCompioClient`)
- **Custom DNS** — pluggable resolver via the `Resolve` trait; hickory-dns integration; DNS-over-HTTPS (`doh` feature) and DNS-over-TLS (`dot` feature)
- **HTTP/2 tuning** — configurable window sizes, frame size, adaptive window, keepalive PINGs
- **Per-request h2c**`RequestBuilderSend` and `RequestBuilderLocal` expose `h2c_prior_knowledge()`, while adaptive h2c probes and caches by effective route and endpoint so one client can mix h1 and h2c targets
- **Connection coalescing** — reuses h2/h3 connections whose TLS certificate SANs cover the target domain (RFC 7540 §9.1.1), matching browser behavior
- **TCP keepalive** — configurable keepalive interval for long-lived connections
- **TCP Fast Open** — reduced connection latency on Linux via TCP_FASTOPEN_CONNECT
- **Local address binding** — bind outgoing connections to a specific local IP
- **JSON** — optional `json` feature for request/response serialization
- **Problem Details** — RFC 9457 `application/problem+json` response parsing (requires `json` feature)
- **Happy Eyeballs** — RFC 6555 connection racing, interleaves IPv6/IPv4 with 250ms stagger
- **Digest auth** — automatic HTTP Digest authentication with 401 retry (RFC 7616, MD5)
- **Bandwidth limiter** — token-bucket byte-rate throttle for download speed limiting
- **Netrc**`.netrc` file parser and middleware for automatic credential injection
- **Auth helpers** — bearer token, basic auth
- **Form data** — URL-encoded form bodies
- **Query parameters** — with percent-encoding
- **Default headers** — automatic User-Agent, configurable defaults
- **Observability** — optional tracing spans and OpenTelemetry middleware
- **Tower integration** — use aioduct as a tower `Service`
- **Link headers** — RFC 8288 Link header parsing for pagination and discovery
- **Forwarded header** — RFC 7239 Forwarded header builder and parser
- **Request timings** — per-phase timing via `RequestObserver` (DNS, TCP, TLS, TTFB, total)

## Quick Start

```toml
[dependencies]
aioduct = { version = "0.2.5", features = ["tokio"] }
```

```rust
use aioduct::{TokioClient, StatusCode};

#[tokio::main]
async fn main() -> Result<(), aioduct::Error> {
    let client = TokioClient::new();

    let resp = client.get("http://httpbin.org/get")?
        .send()
        .await?;

    assert_eq!(resp.status(), StatusCode::OK);
    println!("{}", resp.text().await?);
    Ok(())
}
```

## HTTPS

Enable the `rustls` TLS backend plus exactly one rustls crypto provider:

```toml
aioduct = { version = "0.2.5", features = ["tokio", "rustls", "rustls-ring"] }
```

To use rustls with AWS-LC instead of ring, select the AWS-LC provider:

```toml
aioduct = { version = "0.2.5", features = ["tokio", "rustls", "rustls-aws-lc-rs"] }
```

To use the OS certificate store, add `rustls-native-roots` alongside either TLS provider:

```toml
aioduct = { version = "0.2.5", features = ["tokio", "rustls-native-roots", "rustls-aws-lc-rs"] }
```

```rust
use aioduct::TokioClient;

let client = TokioClient::with_rustls();
let resp = client.get("https://httpbin.org/get")?.send().await?;
```

## Feature Flags

| Feature   | Description                             | Stability    |
|-----------|----------------------------------------|--------------|
| `tokio`   | Tokio async runtime                    | Stable       |
| `smol`    | Smol async runtime                     | Stable       |
| `compio`  | Compio runtime (io_uring / IOCP)       | Experimental |
| `wasm`    | Compatible browser/worker WASM via host Fetch API | Experimental |
| `wasi-p2` | WASI Preview 2 guest HTTP client       | Experimental |
| `wasmtime` | Host-side Wasmtime WASI HTTP adapter  | Experimental |
| `rustls`  | TLS via rustls; requires exactly one rustls provider | Stable |
| `rustls-ring` | ring crypto provider for rustls | Stable |
| `rustls-aws-lc-rs` | AWS-LC crypto provider for rustls | Stable |
| `rustls-native-roots` | Use OS certificate store with either rustls provider | Stable |
| `json`    | JSON request/response with serde       | Stable       |
| `charset` | Charset decoding via encoding_rs       | Stable       |
| `gzip`    | Gzip response decompression            | Stable       |
| `deflate` | Deflate response decompression         | Stable       |
| `brotli`  | Brotli response decompression          | Stable       |
| `zstd`    | Zstd response decompression            | Stable       |
| `blocking`| Synchronous wrapper for Tokio, smol, or compio clients | Stable |
| `hickory-dns` | DNS via hickory-resolver (requires tokio) | Stable |
| `doh`     | DNS-over-HTTPS (implies `hickory-dns`)  | Stable       |
| `dot`     | DNS-over-TLS (implies `hickory-dns`)    | Stable       |
| `tower`   | Tower `Service` and `Layer` integration | Stable      |
| `tracing` | Tracing spans for requests             | Stable       |
| `otel`    | OpenTelemetry middleware               | Stable       |
| `precise-timing` | Use `std::time::Instant` for sub-millisecond timing | Stable |
| `http3`   | HTTP/3 via upstream [h3]https://crates.io/crates/h3 and quinn; requires Tokio, `rustls`, and one rustls provider | Experimental |

At least one runtime feature must be enabled or compilation will fail. When `rustls` is enabled, choose exactly one of `rustls-ring` or `rustls-aws-lc-rs`. The `native-tls` backend name is reserved for possible future OpenSSL/native TLS support and is not implemented today.

HTTP/3 deliberately follows upstream `h3` rather than carrying a protocol
fork. Deferred capabilities fail closed or use conservative replay behavior
until they can be implemented with complete validation and stream-lifecycle
guarantees; see the
[HTTP/3 limitations](https://adamcavendish.github.io/aioduct/http3.html#deferred-protocol-capabilities).

## Examples

Runnable examples are organized by runtime. The dispatch and proxy examples
below exercise complete request paths rather than configuration alone.

| Scenario | Tokio | smol | compio |
| --- | --- | --- | --- |
| Forward a real incoming multipart upload | [`forward-multipart`]examples/tokio/forward-multipart | [`forward-multipart`]examples/smol/forward-multipart | [`forward-multipart`]examples/compio/forward-multipart |
| Use one HTTP, HTTPS, or SOCKS proxy | [`proxy-connect`]examples/tokio/proxy-connect | [`proxy-connect`]examples/smol/proxy-connect | [`proxy-connect`]examples/compio/proxy-connect |
| Route through a two-hop proxy chain | [`proxy-chain`]examples/tokio/proxy-chain | [`proxy-chain`]examples/smol/proxy-chain | [`proxy-chain`]examples/compio/proxy-chain |
| Select proxies by target scheme and `NO_PROXY` | [`proxy-routing`]examples/tokio/proxy-routing | [`proxy-routing`]examples/smol/proxy-routing | [`proxy-routing`]examples/compio/proxy-routing |
| Compare buffered and one-shot retry behavior | [`timeout-and-retry`]examples/tokio/timeout-and-retry | [`timeout-and-retry`]examples/smol/timeout-and-retry | [`timeout-and-retry`]examples/compio/timeout-and-retry |
| Stream an HTTP/3 upload and fail closed | [`http3-streaming-upload`]examples/tokio/http3-streaming-upload | Not supported | Not supported |

### JSON

```rust
// Requires features = ["tokio", "json"]
let resp = client.post("https://api.example.com/users")?
    .json(&serde_json::json!({"name": "Alice"}))?
    .send()
    .await?;

let user: User = resp.json().await?;
```

### Form Data

```rust
let resp = client.post("https://example.com/login")?
    .form(&[("username", "admin"), ("password", "secret")])
    .send()
    .await?;
```

### Authentication

```rust
// Bearer token
let resp = client.get("https://api.example.com/me")?
    .bearer_auth("my-token")
    .send()
    .await?;

// Basic auth
let resp = client.get("https://example.com/protected")?
    .basic_auth("user", Some("pass"))
    .send()
    .await?;
```

### Query Parameters

```rust
let resp = client.get("https://example.com/search")?
    .query(&[("q", "hello world"), ("page", "1")])
    .send()
    .await?;
// GET /search?q=hello%20world&page=1
```

### Client Configuration

```rust
use std::time::Duration;
use aioduct::TokioClient;

let client = TokioClient::builder()
    .timeout(Duration::from_secs(30))
    .max_redirects(5)
    .pool_idle_timeout(Duration::from_secs(90))
    .pool_max_lifetime(Duration::from_secs(600))
    .pool_max_idle_per_host(10)
    .pool_max_active_streams_per_connection(100)
    .tcp_keepalive(Duration::from_secs(60))
    .local_address("192.168.1.100".parse().unwrap())
    .build()?;
```

### Proxy

```rust
use aioduct::{ProxyConfig, TokioClient};

// HTTP CONNECT proxy
let client = TokioClient::builder()
    .proxy(ProxyConfig::http("http://proxy.example.com:8080").unwrap())
    .build()?;

// HTTPS proxy (TLS-wrapped CONNECT)
let client = TokioClient::builder()
    .proxy(ProxyConfig::https("https://proxy.example.com:443").unwrap())
    .build()?;

// SOCKS5 proxy (local DNS — client resolves hostnames)
let client = TokioClient::builder()
    .proxy(ProxyConfig::socks5("socks5://proxy.example.com:1080").unwrap())
    .build()?;

// SOCKS5h proxy (remote DNS — proxy resolves hostnames)
let client = TokioClient::builder()
    .proxy(ProxyConfig::socks5h("socks5h://proxy.example.com:1080").unwrap())
    .build()?;

// SOCKS4/SOCKS4a proxy
let client = TokioClient::builder()
    .proxy(ProxyConfig::socks4("socks4a://proxy.example.com:1080").unwrap())
    .build()?;
```

Proxy URLs can include credentials, which are automatically extracted:

```rust
// Credentials embedded in the URL are parsed automatically
let proxy = ProxyConfig::http("http://user:pass@proxy.example.com:8080").unwrap();
```

For credentials from environment variables, use `EnvCredentialResolver`:

```rust
use aioduct::EnvCredentialResolver;

// Reads AIODUCT_PROXY_USER and AIODUCT_PROXY_PASS
let client = TokioClient::builder()
    .proxy_settings(
        ProxySettings::all(
            ProxyConfig::http("http://proxy:8080").unwrap()
        )
        .proxy_credential_resolver(EnvCredentialResolver),
    )
    .build()?;
```

Proxy chaining routes requests through up to 2 proxies in sequence:

```rust
use aioduct::{ProxyChain, ProxyConfig, TokioClient};

let chain = ProxyChain::new(vec![
    ProxyConfig::socks5("socks5://exit-proxy:1080").unwrap(),
    ProxyConfig::http("http://corporate-proxy:3128").unwrap(),
]);

let client = TokioClient::builder()
    .proxy_chain(chain)
    .build()?;
```

### HTTP/2 Tuning

```rust
use aioduct::Http2Config;
use aioduct::TokioClient;

let client = TokioClient::builder()
    .tls(aioduct::tls::RustlsConnector::with_webpki_roots())
    .http2(
        Http2Config::new()
            .initial_stream_window_size(2 * 1024 * 1024)
            .adaptive_window(true)
            .keep_alive_interval(Duration::from_secs(20))
            .keep_alive_while_idle(true),
    )
    .build()?;
```

### Smol Runtime

```rust
use aioduct::SmolClient;

smol::block_on(async {
    let client = SmolClient::new();
    let resp = client.get("http://httpbin.org/get")?
        .send()
        .await?;
    println!("{}", resp.text().await?);
    Ok::<_, aioduct::Error>(())
});
```

### Request Forwarding (Reverse Proxy)

```rust
use aioduct::{TokioClient, Protocol};
use bytes::Bytes;
use http_body_util::Full;

# async fn example() -> Result<(), aioduct::Error> {
let client = TokioClient::new();

// Forward a request to an upstream, stripping a path prefix
let incoming_req = http::Request::builder()
    .method("GET")
    .uri("/api/users?page=2")
    .header("host", "proxy.example")
    .body(Full::new(Bytes::new()))
    .unwrap();

let resp = client
    .forward(incoming_req)
    .upstream("http://backend:8080".parse::<http::Uri>().unwrap())
    .strip_prefix("/api")
    .header(
        http::header::HeaderName::from_static("x-forwarded-for"),
        http::header::HeaderValue::from_static("10.0.0.1"),
    )
    .send()
    .await?;

// WebSocket upgrade forwarding (auto-detected from headers)
let ws_req = http::Request::builder()
    .method("GET")
    .uri("/ws/chat")
    .header("connection", "Upgrade")
    .header("upgrade", "websocket")
    .body(Full::new(Bytes::new()))
    .unwrap();

let resp = client
    .forward(ws_req)
    .upstream("http://ws-backend:9000".parse::<http::Uri>().unwrap())
    .send()
    .await?;

let upstream_io = resp.upgrade().await?;
// Splice with downstream: tokio::io::copy_bidirectional(...)
# Ok(())
# }
```

## CLI Tools

The workspace includes two CLI tools built on aioduct:

### aioduct-aria

An aria2-inspired parallel download tool. Splits large files into segments and downloads them concurrently using HTTP Range requests.

```sh
# Download with 8 segments
aioduct-aria -s 8 https://example.com/large-file.tar.gz

# Resume an interrupted download
aioduct-aria -c https://example.com/large-file.tar.gz
```

### aioduct-curl

A curl-inspired HTTP tool with familiar flags.

```sh
# GET request
aioduct-curl https://httpbin.org/get

# POST with JSON body
aioduct-curl -X POST -d '{"key":"val"}' -H 'Content-Type: application/json' https://httpbin.org/post

# Follow redirects, basic auth, save to file
aioduct-curl -L -u user:pass -o output.html https://example.com
```

Both tools are workspace members (`publish = false`) and serve as real-world integration examples.

## Architecture

```
HttpEngineSend<R: RuntimePoll, C: ConnectorSend>  ← tokio, smol (Send futures)
HttpEngineLocal<R: RuntimeLocal, C: ConnectorLocal>  ← compio (completion-based, !Send)
  ├── HttpEngineCore<B>       ← shared config (pool, timeouts, middleware, etc.)
  ├── RequestBuilderSend / RequestBuilderLocal
  │                           ← fluent APIs (headers, body, auth, query, timeout)
  ├── ConnectionPool          ← keyed by origin, protocol, route, address, H3 endpoint
  ├── TLS (rustls)            ← async handshake, ALPN → h1/h2; Quinn for h3
  ├── ConnectorSend / ConnectorLocal  ← pre-resolved socket connection and config
  └── Runtime traits
       ├── RuntimeCompletion  ← base: sleep and block_on
       ├── RuntimePoll        ← Send spawn (tokio, smol)
       └── RuntimeLocal       ← !Send spawn (compio)

Type aliases:
  TokioClient  = HttpEngineSend<TokioRuntime, tokio_rt::TcpConnector>
  SmolClient   = HttpEngineSend<SmolRuntime, smol_rt::TcpConnector>
  CompioClient = HttpEngineLocal<CompioRuntime, compio_rt::TcpConnector>
```

The runtime and connector responsibilities are split into separate traits.
Their core signatures are shown below; connector socket-adoption helpers and
the resolver's `resolve_all` default method are omitted for brevity.

```rust
/// Base runtime: timing and synchronous entry.
pub trait RuntimeCompletion: 'static {
    type Sleep: Future<Output = ()>;
    fn sleep(duration: Duration) -> Self::Sleep;
    fn block_on<F: Future>(future: F) -> Result<F::Output, aioduct::Error>;
}

/// Send-capable runtime: spawn Send futures (Tokio and smol).
pub trait RuntimePoll: RuntimeCompletion<Sleep: Send> + Send + Sync {
    fn spawn_send<F: Future<Output = ()> + Send + 'static>(future: F);
}

/// Local runtime: spawn futures that need not be Send (compio).
pub trait RuntimeLocal: RuntimeCompletion {
    fn spawn_local<F: Future<Output = ()> + 'static>(future: F);
}

/// Send connector for a pre-resolved socket address.
pub trait ConnectorSend: Clone + Send + Sync + 'static {
    type Stream: hyper::rt::Read
        + hyper::rt::Write
        + SocketConfig
        + Send
        + Unpin
        + 'static;
    fn connect(&self, addr: SocketAddr)
        -> impl Future<Output = io::Result<Self::Stream>> + Send;
}

/// Local connector for completion-based runtimes.
pub trait ConnectorLocal: 'static {
    type Stream: hyper::rt::Read
        + hyper::rt::Write
        + SocketConfig
        + Unpin
        + 'static;
    async fn connect(&self, addr: SocketAddr) -> io::Result<Self::Stream>;
}

/// Pluggable DNS resolution.
pub trait Resolve: Send + Sync + 'static {
    fn resolve(&self, host: &str, port: u16)
        -> Pin<Box<dyn Future<Output = io::Result<SocketAddr>> + Send>>;
}
```

## Comparison

| | reqwest | aioduct |
|---|---|---|
| hyper | 1.x via hyper-util legacy | 1.x direct |
| hyper-util | Required | Not used |
| Runtime | tokio only | tokio / smol / compio / wasm / wasi |
| TLS | rustls or native-tls | rustls (`native-tls` reserved for future support) |
| HTTP/3 | Experimental | Experimental |
| io_uring | No | Via compio |
| Connection pool | hyper-util legacy | Custom h1/h2/h3 |
| Cookie jar | Yes | Yes |
| SSE streaming | No (manual) | Built-in |
| Rate limiting | No | Built-in |
| HTTP caching | No | Built-in |
| HSTS | No | Built-in |
| Link headers | No | Built-in |
| Problem Details | No | Built-in |
| Middleware | Via tower | Built-in + tower |
| Happy Eyeballs | No | RFC 6555 |
| Digest auth | No | Built-in |
| Bandwidth limiter | No | Built-in |
| Netrc | No | Built-in |
| Request timings | No | Observer |
| Connection coalescing | No | Built-in (RFC 7540) |
| DNS-over-HTTPS/TLS | No | Built-in |
| HTTP/3 0-RTT | No | Unsupported |
| Request forwarding | No | Built-in |

## MSRV

The minimum supported Rust version is **1.95.0** (edition 2024).

## License

Licensed under either of

- Apache License, Version 2.0 ([LICENSE-APACHE]LICENSE-APACHE or <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT License ([LICENSE-MIT]LICENSE-MIT or <http://opensource.org/licenses/MIT>)

at your option.