Replies: 1 comment 2 replies
-
|
The easiest way is probably to use https://docs.rs/hyper/0.14.20/hyper/struct.Body.html#method.channel |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to set customer trailers in a streaming response?
A quick scan through the sources seems to show that the
Bodyimplementation is done byEncodeBodywhosepoll_trailersimplementation delegates toEncodeStatewhich returns trailers only in case of errors and it doesn't allow to customize trailers.Should I wrap my service with a custom tower layer and try to return custom trailers that way? Or is there a better approach?
Beta Was this translation helpful? Give feedback.
All reactions