Skip to main content

Crate jsonrpsee_http_client

Crate jsonrpsee_http_client 

Source
Expand description

§jsonrpsee-http-client

jsonrpsee-http-client is JSON RPC HTTP client library that’s is built for async/await.

It is tightly-coupled to tokio because hyper is used as transport client, which is not compatible with other async runtimes such as async-std, smol and similar.

Re-exports§

pub use transport::HttpBackend;
pub use transport::HttpTransportClient;
pub use jsonrpsee_types as types;

Modules§

transport
HTTP transport.

Structs§

HeaderMap
A specialized multimap for header names and values.
HeaderValue
Represents an HTTP header field value.
HttpClient
JSON-RPC HTTP Client that provides functionality to perform method calls and notifications.
HttpClientBuilder
HTTP client builder.
RpcLogger
A middleware that logs each RPC call and response.
RpcLoggerLayer
RPC logger layer.
RpcService
This is the default implementation of the jsonrpsee_core::middleware::RpcServiceT trait used in the HttpClient. An RpcServiceT compliant implementation for the HTTP client.
RpcServiceBuilder
Similar to tower::ServiceBuilder but doesn’t support any tower middleware implementations.

Traits§

RpcServiceT
Represent a JSON-RPC service that can process JSON-RPC calls, notifications, and batch requests.

Type Aliases§

CustomCertStoretls
Custom TLS configuration.
HttpBody
Default HTTP body for the client.
HttpRequest
HTTP request with default body.
HttpResponse
HTTP response with default body.