Module git_transport::client::http

source ·
Available on crate features blocking-client and http-client only.
Expand description

Structs

The return value of Http::get().
The return value of Http::post().
A transport for supporting arbitrary http clients by abstracting interactions with them into the Http trait.

Enums

The error used by the Http trait.

Traits

A trait to abstract the HTTP operations needed to power all git interactions: read via GET and write via POST. Note that 401 must be turned into std::io::Error(PermissionDenied), and other non-success http stati must be transformed into std::io::Error(Other)

Functions

connecthttp-client-curl or http-client-reqwest
Connect to the given url via HTTP/S using the desired_version of the git protocol.

Type Definitions

Implhttp-client-curl
The actual http client implementation, using curl