Skip to content

Commit 87dd9b5

Browse files
committed
fix(http-client): expose types to allow naming HttpClient with middleware
Exposes RpcService, HttpBackend, HttpTransportClient, RpcLogger, RpcLoggerLayer, RpcServiceBuilder, and RpcServiceT at the crate root to allow users to name the HttpClient type when middleware is applied. Closes #1590
1 parent bb3c537 commit 87dd9b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client/http-client/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ pub type HttpRequest<T = HttpBody> = jsonrpsee_core::http_helpers::Request<T>;
5757
/// HTTP response with default body.
5858
pub type HttpResponse<T = HttpBody> = jsonrpsee_core::http_helpers::Response<T>;
5959

60+
pub use jsonrpsee_core::middleware::{RpcServiceBuilder, RpcServiceT};
61+
pub use jsonrpsee_core::middleware::layer::{RpcLogger, RpcLoggerLayer};
62+
pub use transport::{HttpBackend, HttpTransportClient};
63+
6064
/// Custom TLS configuration.
6165
#[cfg(feature = "tls")]
6266
pub type CustomCertStore = rustls::ClientConfig;

0 commit comments

Comments
 (0)