I do not understand how to construct the tailers parameter of the request constructor. It expects a future<result<option<trailers>, error-code>>. In my case all requests do not have any trailers.
Would I have to write a future that directly resolves to Ok(None)? Thanks!
Would I have to write a future that directly resolves to
Ok(None)?
Yep. The main point of trailers is that you don't (necessarily) know what they are until the body has been processed, so for a general-purpose interface we need some way to make that async.
Thank you!
Write a Future combinator named ready in your support library, to construct any immediately resolved future
Last updated: Dec 06 2025 at 05:03 UTC