Expand description
A reqwest transport for smithy-generated clients.
ReqwestHttpClient implements
aws_smithy_runtime_api::client::http::HttpClient and can be installed into
AWS SDK for Rust or other smithy-runtime client configurations that accept a
smithy HTTP client.
§TLS features
This crate disables reqwest’s default features and forwards TLS selection to
reqwest. No TLS backend is enabled by default; enable one of rustls,
rustls-no-provider, native-tls, native-tls-vendored, or default-tls
when HTTPS support is required.
smithy-transport-reqwest = { version = "0.1", features = ["native-tls"] }§Using with AWS SDK for Rust
ⓘ
use aws_config::BehaviorVersion;
use smithy_transport_reqwest::ReqwestHttpClient;
let sdk_config = aws_config::defaults(BehaviorVersion::latest())
.http_client(ReqwestHttpClient::new())
.load()
.await;
let s3 = aws_sdk_s3::Client::new(&sdk_config);Structs§
- Reqwest
Http Client - A reqwest-backed smithy HTTP client.