[][src]Crate http_client

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.

Modules

isahccurl_client

http-client implementation for isahc

nativenative_client

http-client implementation for curl + fetch

Structs

Body

The raw body of an http request or response.

Traits

HttpClient

An abstract HTTP client.

Type Definitions

Request

An HTTP Request type with a streaming body.

Response

An HTTP Response type with a streaming body.