aws-smithy-http-client-reqwest
aws-smithy-http-client-reqwest provides a reqwest-backed HTTP client for
Smithy-based runtimes, including the AWS SDK for Rust.
It is useful when you want to:
- reuse an existing
reqwest::Client - keep transport configuration in one place
- control which
reqwestfeatures and TLS stack your application uses
Installation
[]
= "0.1"
= "0.13"
= "1"
Example
use BehaviorVersion;
use ReqwestHttpClient;
let reqwest_client = builder
.user_agent
.build?;
let config = defaults
.http_client
.load;
# let _ = config;
# Ok::
What This Crate Does
ReqwestHttpClient implements Smithy's
aws_smithy_runtime_api::client::http::HttpClient trait and forwards requests
through a provided reqwest::Client.
That means you can configure reqwest yourself, then plug it into
Smithy-based clients instead of relying on the default transport implementation.
Limitations
- Connect timeout is currently not supported.