smithy-transport-reqwest
A small reqwest-backed implementation of
aws_smithy_runtime_api::client::http::HttpClient.
use ReqwestHttpClient;
let http_client = new;
The client caches reqwest connectors by smithy HTTP connector settings and applies smithy connect and read timeout values when creating the underlying reqwest clients. Reqwest's automatic redirect policy is disabled so generated smithy clients receive service responses directly.
TLS backend selection
Reqwest default features are disabled by this crate, and no TLS backend is enabled by default. Select the backend you want:
= { = "0.1", = ["rustls"] }
Or, for native TLS:
= { = "0.1", = ["native-tls"] }
Forwarded TLS features:
rustlsrustls-no-providerdefault-tlsnative-tlsnative-tls-no-alpnnative-tls-vendorednative-tls-vendored-no-alpn
Additional reqwest feature passthroughs are available for http2, http3, and
system-proxy.
AWS SDK setup
Install this crate with a TLS feature, plus aws-config and whichever generated
AWS SDK crates your application uses:
[]
= "1"
= "1"
= { = "0.1", = ["rustls"] }
Then pass the HTTP client into the shared AWS config loader:
use BehaviorVersion;
use ReqwestHttpClient;
# async