Expand description
Reusable, config-swappable reqwest::Client configuration and distribution.
SwappableClient distributes cloned reqwest::Client handles from a
shared HttpClientConfig. Because reqwest::Client is internally
reference-counted, swapping the configuration does not disrupt in-flight
requests: requests that already acquired a client continue on the previous
instance until completion, while subsequent requests receive the new client.
Structs§
- Http
Client Config - Reusable configuration for constructing
reqwest::Clientinstances. - Swappable
Client - Config-swappable distributor of
reqwest::Clientinstances.
Enums§
- Http
Client Error - Errors returned when building or swapping a
reqwest::Client. - Http
Request Error - Errors returned when executing and decoding HTTP requests via
RequestBuilderExt.
Constants§
- DEFAULT_
CONNECT_ TIMEOUT - Default connection timeout applied by
HttpClientConfig::default. - DEFAULT_
READ_ TIMEOUT - Default socket read timeout applied by
HttpClientConfig::default. - DEFAULT_
USER_ AGENT - Default
User-Agentheader applied byHttpClientConfig::default.
Traits§
- Request
Builder Ext - Convenience response-decoding helpers on
reqwest::RequestBuilder.
Type Aliases§
- Result
- Result alias for
crate::httpconfiguration operations.