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

Implement the Body trait for ChunkedBody #494

Closed
Thomasdezeeuw opened this issue Sep 19, 2021 · 0 comments · Fixed by #577
Closed

Implement the Body trait for ChunkedBody #494

Thomasdezeeuw opened this issue Sep 19, 2021 · 0 comments · Fixed by #577
Labels
HTTP Related to the Heph-HTTP crate.

Comments

@Thomasdezeeuw
Copy link
Owner

Related code:

heph/http/src/body.rs

Lines 379 to 387 in 1af3172

/// Streaming body with an unknown length. Send in multiple chunks.
#[derive(Debug)]
pub struct ChunkedBody<'b, B> {
#[allow(dead_code)] // Currently unused, but need for the `Body` impl.
stream: B,
_body_lifetime: PhantomData<&'b [u8]>,
}
// TODO: implement `Body` for `ChunkedBody`.

@Thomasdezeeuw Thomasdezeeuw added the HTTP Related to the Heph-HTTP crate. label Sep 19, 2021
@Thomasdezeeuw Thomasdezeeuw mentioned this issue May 25, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HTTP Related to the Heph-HTTP crate.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant