Skip to content

Make body::Sender type and Body::channel() constructor private. #2962

Closed
@seanmonstar

Description

@seanmonstar

This is an "easy" task, in that the changes aren't complicated:

  • Change the hyper::body::Sender type to pub(crate).
  • Change the Body::channel() method to pub(crate).
  • Replace any usage in the examples, tests, or docs with an appropriate alternative.
    • This might be as simple as a Full, but if specifically showing a channel usage, or needing a channel behavior for a test, a tokio::sync::mpsc wrapped in StreamBody should work.

Metadata

Metadata

Assignees

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