Module http

Module http 

Source

Modules§

header
HTTP header types

Structs§

Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
Client
Client for communicating with APIs through HTTP/HTTPS.
HeaderMap
A set of HTTP headers
Method
The Request Method (VERB)
Request
A request which can be executed with Client::execute().
RequestBuilder
A builder to construct the properties of a Request.
RequestConfig
Configuration when sending a request using Client.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).

Enums§

ApiError
Errors that exchanges purposefully transmit.
BuildError
Errors that can occur during exchange’s implementation of the build-request process.
HandleError
Error type encompassing all the failure modes of RequestHandler::handle_response().
RequestError
An enum that represents errors that could be returned by Client::request()

Statics§

USER_AGENT
The User Agent string

Traits§

RequestHandler
A trait which is used to process requests and responses for the Client.