Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Expose streaming as public API wrap #2255

Merged
merged 4 commits into from
Sep 4, 2024

Conversation

Xuanwo
Copy link
Contributor

@Xuanwo Xuanwo commented Apr 22, 2024

Close #2243

/// # Optional
///
/// This requires the `stream` feature to be enabled.
pub fn streaming<B>(inner: B) -> Body
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if it's ok to keep the naming. I'm open to other candidates. cc @seanmonstar

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, maybe Body::wrap(other)? Since a particular implementation might not actually be streaming?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DONE. @seanmonstar, please take a look.

@Xuanwo
Copy link
Contributor Author

Xuanwo commented Aug 30, 2024

Hi, @seanmonstar, do you think it's a good time for us to expose this API?

@Xuanwo Xuanwo changed the title feat: Expose streaming as public API feat: Expose streaming as public API wrap Sep 4, 2024
@seanmonstar seanmonstar merged commit 4cc8ec8 into seanmonstar:master Sep 4, 2024
36 checks passed
@seanmonstar
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose Body::streaming as public API
2 participants