Skip to main content

Module rpc_client

Module rpc_client 

Source
Expand description

A client for calling Zebra’s JSON-RPC methods.

Used in the rpc sync scanning functionality and in various tests and tools.

Structs§

RpcRequestClient
An HTTP client for making JSON-RPC requests.

Constants§

RPC_REQUEST_TIMEOUT 🔒
The default timeout for RPC requests.

Statics§

NEXT_REQUEST_ID 🔒
A process-wide, monotonically increasing counter for JSON-RPC request ids, so each request carries a distinct id that its response can be correlated against.

Functions§

next_request_id 🔒
Returns the next distinct JSON-RPC request id.