Expand description
Custom transport-handler entry points for HttpClient.
Every HttpClient ultimately dispatches requests through a transport
handler — the leaf of the request pipeline that actually performs I/O.
This module exposes the types needed to supply your own, while the bundled
transports (the Tokio transport and the test fakes) reuse the same machinery
internally.
The free-standing create_builder function is the entry point: it returns
an HttpClientBuilder so the pipeline (middleware, options, …) can be
tailored before HttpClientBuilder::build is called.
Structs§
- Custom
Context - Per-pool-slot context handed to a user-supplied transport factory.
- Custom
Deps - Runtime-agnostic dependencies required by a custom-transport
HttpClient.
Enums§
- Isolation
- Threading model required by a custom transport.
Functions§
- create_
builder - Creates a builder for an HTTP client backed by a custom transport handler.