n0-computer / quic-rpc

A streaming rpc system based on quic
Other
94 stars 12 forks source link

Make into_inner more useful for http2 transport #35

Open rklaehn opened 1 year ago

rklaehn commented 1 year ago

Currently the http2 transport has an into_inner only on the SendSink, because the RecvStream never sees the raw bytes. The framing and deserialization gets done in the forwarder.

The recv side should be changed so that the stream of raw bytes::Bytes is also available for into_inner.

Also, there should be utilities to turn a stream of bytes into an AsyncRead and a sink of bytes into an AsyncWrite. The former exists for futures, but unfortunately not for tokio.