Expand description
hRPC client transports.
A client transport is any tower::Service
that has a BoxRequest
request type, BoxResponse
response type and TransportError<Err>
(where Err
is the error type the transport uses) error type. This allows
tower::Layer
s to be used to compose transports.
Currently implemented:
- HTTP
hyper
client (transport::http::hyper
), - HTTP WASM web client (
transport::http::wasm
), - mock client, useful for testing (
transport::mock
).
Modules
Structs
Struct that should be used by transports to return socket channels to generic client.
Enums
Error type that transports need to return.
Functions
Returns whether a request is a socket request or not.