Skip to content

Rename the HttpBody export to Body #2839

Description

@seanmonstar

When the concrete Body struct is removed, we can export the http_body::Body trait as just Body.

Activity

  1. added
    E-easyEffort: easy. A task that would be a great starting point for a new contributor.
    C-featureCategory: feature. This is adding a new feature.
    A-bodyArea: body streaming.
    on May 20, 2022
  2. added this to the 1.0 milestone on May 20, 2022
  3. yuri-potatoq commented on May 22, 2022

    @yuri-potatoq

    What would be the advantage in case of import both trait and struct?

  4. seanmonstar commented on May 22, 2022

    @seanmonstar
    MemberAuthor

    The struct will be removed, as detailed in #2345.

  5. RajivTS commented on Aug 20, 2022

    @RajivTS
    Contributor

    I am just starting up with Hyper so would like to work on this task (if that's ok). By renaming and exporting the http_body::Body trait as just Body, I assume you are talking about updating the following:

    hyper/src/body/mod.rs

    Lines 19 to 23 in 84f6ae7

    pub use http_body::Body as HttpBody;
    pub use http_body::SizeHint;
    pub use self::aggregate::aggregate;
    pub use self::body::{Body, Sender};

    But since the concrete Body type is already exported as Body, wouldn't that cause a conflict? Should I get rid of the concrete type export?

  6. seanmonstar commented on Aug 20, 2022

    @seanmonstar
    MemberAuthor

    Yes, we'd need to finish removing parts of Body, and renaming that. Then this one would be straightforward.

  7. RajivTS commented on Aug 20, 2022

    @RajivTS
    Contributor

    Is there a separate task that I can work on to remove parts of Body?

  8. moved this from Todo to Blocked in hyper 1.0on Aug 22, 2022
  9. seanmonstar commented on Aug 25, 2022

    @seanmonstar
    MemberAuthor

    @RajivTS The top comment in #2345 includes a list of tasks, and I tried to put them in order of unblocking the next one. Some are linked to specific issues, we can make more of them issues too.

  10. moved this from Blocked to Todo in hyper 1.0on Aug 26, 2022
  11. seanmonstar commented on Aug 26, 2022

    @seanmonstar
    MemberAuthor

    This is no longer blocked, since Body was renamed to Recv as a stop-gap (#2963).

  12. added a commit that references this issue on Aug 28, 2022
    0552706
  13. RajivTS commented on Aug 28, 2022

    @RajivTS
    Contributor

    @seanmonstar Created PR to address this, would appreciate a review to understand if I missed something.

  14. added a commit that references this issue on Aug 29, 2022
    9be9fb7
  15. moved this from Todo to In Progress in hyper 1.0on Aug 29, 2022
  16. added a commit that references this issue on Aug 29, 2022
    b2a8b3d
  17. Repository owner moved this from In Progress to Done in hyper 1.0on Aug 30, 2022
  18. added a commit that references this issue on Aug 30, 2022
    031454e
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-bodyArea: body streaming.C-featureCategory: feature. This is adding a new feature.E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions