Skip to main content

Module custom

Module custom 

Source
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§

CustomContext
Per-pool-slot context handed to a user-supplied transport factory.
CustomDeps
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.