Skip to main content

Module http_client

Module http_client 

Source
Expand description

HTTP client for Raft network communication using postcard2 serialization.

Implements RaftNetworkFactory and RaftNetwork traits from openraft, using reqwest with connection pooling and split timeouts (short for vote/append, long for snapshots).

Structsยง

HttpConnection
A single connection to a Raft peer.
HttpNetwork
Network factory that creates HTTP connections to Raft peers.
RaftHttpClient
HTTP client for Raft RPCs using postcard2 serialization.