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

Chunked body streaming with fine-grained control #288

Open
whatyouhide opened this issue Aug 17, 2024 · 1 comment
Open

Chunked body streaming with fine-grained control #288

whatyouhide opened this issue Aug 17, 2024 · 1 comment

Comments

@whatyouhide
Copy link
Contributor

Hiya @sneako 👋 🙃

So I was playing around with some stuff yesterday and I ended up needing a way to take a Finch request and feed chunked body into it. This is doable with body: {:stream, stream}, but with that the control for when the body is fed into the request is in Finch's hands.

Instead, I’m looking for an API like Mint's stream_request_body (which Finch's {:stream, stream} uses). Is this doable, or has it been proposed before? Haven't had time to look into feasibility of this yet. 🙃

@sneako
Copy link
Owner

sneako commented Sep 2, 2024

Hey Andrea! Sorry for the late reply, I was traveling for the second half of August. I'm back at it now.

This isn't a use case I have needed or thought much about yet, but its not something I would be against.

Maybe some pseudo code showing your ideal API could help us flesh it out a bit?

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

No branches or pull requests

2 participants