Skip to main content

Module http

Module http 

Source
Expand description

Construction of the HTTP clients libxmtp uses for plain HTTP(S) endpoints.

gRPC traffic does not go through here — it is configured in xmtp_api_grpc.

Functions§

client
Build a [reqwest::Client] for talking to XMTP HTTP endpoints.
client_builder
The same configuration as client, for callers that need to set timeouts or other options before building. Note that on Android the TLS setup is already fixed here, so reqwest’s own TLS options (extra roots, danger_accept_invalid_certs, …) are ignored.