Skip to content

Expand 'body' documentation to explain body streams #2201

Closed

Description

@seanmonstar

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.

Activity

  1. added
    E-easy
    A-docs
    A-body
    on May 14, 2020
  2. fzlzjerry commented on Aug 9, 2026

    @fzlzjerry
    Contributor

    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.

  3. added a commit that references this issue on Aug 10, 2026
    af432e9
  4. added 2 commits that reference this issue on Oct 21, 2026
    48634b3
    fa91861
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-bodyA-docsE-easy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions