Expand description
Types and traits for http clients.
This crate has been extracted from surf
’s internals, but can be used by any http client impl.
The purpose of this crate is to provide a unified interface for multiple HTTP client backends,
so that they can be abstracted over without doing extra work.
Re-exports§
pub use http_types;
Modules§
- h1
h1_client
anddefault
- http-client implementation for async-h1, with connection pooling (“Keep-Alive”).
- hyper
hyper_client
- http-client implementation for reqwest
- isahc
curl_client
- http-client implementation for isahc
- native
native_client
- http-client implementation for curl + fetch
Structs§
- Config
- Configuration for
HttpClient
s.
Traits§
- Http
Client - An abstract HTTP client.
Type Aliases§
- Body
- The raw body of an http request or response.
- Error
- Error type.
- Request
- An HTTP Request type with a streaming body.
- Response
- An HTTP Response type with a streaming body.