Crate htrpc

Source
Expand description

HTTP based RPC library.

This crate provides a thin framework to easily implement type-safe RPC channels for client/server model communication.

Modules§

deserializers
Deserializer trait implementations.
json
JSON serialize/deserialize function.
json_pretty
Pretty-Printed JSON serialize/deserialize function.
msgpack
MessagePack serialize/deserialize function.
pool
Connection pool.
rfc7807
“Problem Details for HTTP APIs (RFC 7807)” related components.
serializers
Serializer trait implementations.
types
Miscellaneous types.

Macros§

htrpc_entry_point
A helper macro to construct an EntryPoint instance.

Structs§

Error
This crate specific error type.
RpcClient
RPC Client.
RpcServer
RPC Server.
RpcServerBuilder
The RpcServer builder.

Enums§

ErrorKind
The list of the possible error kinds.

Traits§

FutureExt
HandleRpc
This trait allows to handle RPC requests issued by clients.
Procedure
Procedure definition.
RpcRequest
RPC Request.
RpcResponse
RPC Response.

Functions§

content_length

Type Aliases§

BodyReader
ReadBody
Result
This crate specific Result type.