Skip to main content

Module client

Module client 

Source
Expand description

The HTTP client: TLS as crate::tls sets it up, the API key as a bearer token, an X-Request-Id on every request, and the retries of crate::error.

Structs§

Client
A client of one server, with one API key.

Constants§

CONNECT_TIMEOUT
How long a connection, TLS included, may take to open.
READ_TIMEOUT
How long the server may stay silent in the middle of an answer.

Functions§

json
Reads a JSON answer.