trillium-grpc 0.1.0

gRPC server and client for trillium, built on trillium-http's h2/h2c/h3 support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! gRPC message framing.
//!
//! Every gRPC message on the wire is a 5-byte prefix — one Compressed-Flag
//! byte followed by a big-endian `u32` length — then that many payload bytes.
//! A single HTTP/2 body carries a sequence of these frames.
//!
//! [`reader`] turns an `AsyncRead` body into a [`Stream`](futures_lite::Stream)
//! of decoded messages; [`writer`] encodes a message (optionally compressed)
//! into a frame. Codec and compression are both pushed in from the caller, so
//! this layer is agnostic to message type and encoding.

pub mod reader;
pub mod writer;