You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expand 'body' documentation to explain body streams #2201
The docs of hyper::body should be expanded to explain that request and response bodies in hyper are streamed, not buffered. And we should show some examples on that page about how to read the body data.
Reacted by Fangdun Tsai, Dan Kolsoi, SHIV KUSHWAHA, Jakub Beránek, Adrián Nagy, Maximilian Stock, Alexander Hirner, Sudeep Jathar and smallpath
I'd like to work on the remaining example portion of this issue. The current module docs explain that bodies are streamed, but they don't yet show how to consume the frames or how to intentionally collect a bounded body.
I'll add compile-checked module examples for both paths and make the buffering tradeoff explicit.
Activity
docs(body): add example for to_bytes()
fzlzjerry commentedon Aug 9, 2026
I'd like to work on the remaining example portion of this issue. The current module docs explain that bodies are streamed, but they don't yet show how to consume the frames or how to intentionally collect a bounded body.
I'll add compile-checked module examples for both paths and make the buffering tradeoff explicit.
docs(body): add streaming read examples (hyperium#4148)
docs(body): add streaming read examples (hyperium#4148)
docs(body): add streaming read examples (hyperium#4148)