Re-exports§
pub use download::DownloadBuilder;pub use download::DownloadCapabilities;pub use download::DownloadDigest;pub use download::DownloadResult;pub use download::HashAlgorithm;
Modules§
- download
- Concurrent range-based file downloader.
Structs§
- Body
- An HTTP request or response body.
- Client
- The main HTTP client.
- Client
Builder - Builder for
Client. - Close
Frame - Cookie
Jar - Cookie
Middleware - DnsConfig
- Configuration for the built-in DNS resolver and cache.
- Error
- An error returned by ugi operations.
- Grpc
Duplex Call - Grpc
Request Builder - Grpc
Response - Grpc
Status - Grpc
Streaming Response - H2Keep
Alive Config - HTTP/2 connection keep-alive (PING frame) configuration.
- Header
Map - An ordered, multi-valued HTTP header map.
- Header
Name - A validated, lowercase HTTP header name.
- Header
Value - A validated HTTP header value.
- Metrics
- Per-request timing and connection diagnostics.
- Multipart
Part - A single part in a multipart/form-data request body.
- Next
- A handle to the remaining middleware chain and underlying transport.
- Pool
Config - Configuration for the per-host idle connection pool.
- Progress
- A snapshot of transfer progress at a point in time.
- Progress
Config - Controls how frequently progress callbacks are fired.
- Proxy
Auth - Username/password credentials for proxy authentication.
- Rate
Limiter - A cloneable, shared token-bucket rate limiter.
- Request
- Request
Builder - Response
- An HTTP response returned by a completed request.
- SseEvent
- A single Server-Sent Event parsed from a
text/event-streamresponse. - Status
Code - An HTTP status code (e.g.
200,404). - Timeout
Config - Controls per-request and total timeout durations.
- TlsConfig
- TLS configuration for a
Clientor individual request. - Url
- A parsed HTTP/HTTPS/WS/WSS URL.
- WebSocket
- WebSocket
Builder
Enums§
- Compression
Mode - Controls how the client handles response body compression.
- Error
Kind - Categorises the cause of an
Error. - Grpc
Codec - Method
- HTTP request method.
- Progress
Phase - Whether a progress event relates to uploading or downloading.
- Protocol
Policy - Controls which HTTP protocol version the client prefers or requires.
- Proxy
- A proxy server to route requests through.
- Redirect
Policy - Controls how many HTTP redirects the client will follow automatically.
- Retry
Policy - Controls how many times a failed request may be retried.
- Root
Store - Source of trusted root certificates for TLS verification.
- TlsBackend
- Selects the TLS implementation to use.
- Version
- HTTP protocol version used for a response.
- WebSocket
Message
Traits§
- Middleware
- Middleware hook that intercepts outbound requests and/or inbound responses.
Functions§
Type Aliases§
- Body
Stream - A pinned, boxed async byte stream used as a streaming request or response body.
- Bytes
Stream - Result
- SseStream