Expand description
OxiHTTP Client - Pure-Rust HTTP client for the OxiHTTP stack.
Provides a high-level HTTP client with connection pooling, redirect handling, retry logic, timeouts, and a fluent request builder API.
§Example
use oxihttp_client::Client;
let client = Client::builder().build()?;
let resp = client.get("http://example.com")?.send().await?;
assert_eq!(resp.status(), http::StatusCode::OK);Re-exports§
pub use proxy::ProxyConnector;pub use proxy::ProxyKind;pub use client_builder::ClientBuilder;pub use client_builder::Http2Settings;pub use middleware::ClientMiddleware;pub use middleware::LoggingMiddleware;pub use middleware::TimingMiddleware;pub use redirect::RedirectPolicy;pub use retry::RetryPolicy;
Modules§
- client_
builder ClientBuilderand related HTTP/2 configuration types.- middleware
- Lightweight middleware/interceptor chain for the HTTP client.
- proxy
- HTTP CONNECT and SOCKS5 proxy connectors.
- redirect
- Redirect handling policies for the HTTP client.
- resolver
- Custom DNS resolver support for oxihttp clients.
- retry
- Retry logic with exponential backoff for the HTTP client.
Structs§
- Body
Stream - An async stream of response body chunks produced by
Response::body_stream(). - Client
- HTTP client with connection pooling, redirect handling, and retry support.
- Request
Builder - Builder for a single HTTP request.
- Response
- HTTP response wrapper providing convenience methods for body consumption.
Type Aliases§
- Resolver
Client - An HTTP client using a custom DNS resolver (plain HTTP).