hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Add example for to_bytes and trailers

Open tiziano88 opened this issue 3 years ago • 2 comments

It is not obvious how to deal with trailers, especially since in most cases the body gets consumed by a call to to_bytes, even though it is perfectly fine to call that on a mutable reference to the body, and then extract the trailers aftewards.

tiziano88 avatar Sep 05 '22 16:09 tiziano88

@mariaschett could you take a look?

tiziano88 avatar Sep 05 '22 16:09 tiziano88

Yes, I agree, we have needed trailers to proxy a gRPC request here.

mariaschett avatar Sep 12 '22 06:09 mariaschett