docs.rs failed to build reqx-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
reqx-0.1.27
reqx
reqx is an HTTP transport client for Rust API SDK libraries.
It focuses on SDK transport concerns: retries, timeout phases, idempotency, proxy routing, structured errors, and metrics.
Install
Use native-tls:
Use rustls + aws-lc-rs:
Use blocking client with ureq + rustls(ring):
Use blocking client with ureq + native-tls:
TLS Backends
- async backends (default mode):
async-tls-rustls-ring(default)async-tls-rustls-aws-lc-rsasync-tls-native
- blocking backends (
ureq):blocking-tls-rustls-ringblocking-tls-rustls-aws-lc-rsblocking-tls-native
- runtime selection via
tls_backend(TlsBackend::...) - build-time mismatch returns structured error from
try_build() - custom root CA:
tls_root_ca_pem(...)/tls_root_ca_der(...) - mTLS identity:
- PEM chain + key:
tls_client_identity_pem(...)(async + sync) - PKCS#12:
tls_client_identity_pkcs12(...)(asyncasync-tls-native)
- PEM chain + key:
Quick Start
use Duration;
use ;
use Deserialize;
async
Blocking Quick Start
use Duration;
use HttpClient;
Core Capabilities
- global defaults + per-request overrides
- idempotency-aware retries
- transport timeout + response-body timeout + total deadline
- streaming upload and streaming response path
- buffered-path automatic decoding:
gzip,br,deflate,zstd - proxy support with auth and
no_proxy - response body size limit
- structured error variants + machine error codes
- metrics snapshot for retries, latency, status and error buckets
Examples
- Full index:
examples/README.md cargo run --example basic_jsoncargo run --example request_helperscargo run --example request_overridescargo run --example error_handlingcargo run --example metrics_snapshotcargo run --example streamingcargo run --example concurrency_limitscargo run --example retry_classifiercargo run --example proxy_and_no_proxycargo run --example tls_backendscargo run --example custom_ca_mtlscargo run --example blocking_basic --no-default-features -F blocking-tls-rustls-ring
Error Model
Common HttpClientError variants:
Transport { kind, .. }Timeout { phase, .. }DeadlineExceeded { .. }HttpStatus { status, body, .. }DecodeContentEncoding { .. }Deserialize { .. }
Use error.code() for stable machine-readable classification.