Skip to main content

Module http

Module http 

Source
Expand description

HTTP + SSE transport, with reqwest and rustls. Port of @redseat/api-http http-transport.ts and client.ts, with the address choice of direct.ts.

Structs§

ConnectOptions
How HttpTransport::connect picks a server address.
HttpTransport
Transport over HTTP(S).

Constants§

DEFAULT_TIMEOUT
Default request timeout (TS: 30 s).

Functions§

resolve_server_url
The base URL to reach server at: the first of its direct addresses and custom domain to answer /ping (see crate::direct), else its url.