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

Permit processing HTTP/1.1 headers as they arrive #452

Open
nsweeting opened this issue Oct 18, 2024 · 1 comment
Open

Permit processing HTTP/1.1 headers as they arrive #452

nsweeting opened this issue Oct 18, 2024 · 1 comment

Comments

@nsweeting
Copy link

nsweeting commented Oct 18, 2024

I'm currently trying to implement a HTTP-based database driver using mint. One of the features that the DB supports is "progress headers". The headers are continually sent to the client to provide feedback on the query progress. Unfortunately I don't seem to be able to access these until the query is fully executed as all the headers come at once via {:headers, request_ref, headers} - and as noted in the docs "A single :headers response will come after the :status response.". I can confirm that the headers are being sent as the query progresses when the same request is sent with curl.

Is there a reason why mint couldn't provide access to these headers as they arrive instead of accumulating them?

@whatyouhide
Copy link
Contributor

whatyouhide commented Oct 19, 2024

Hi @nsweeting are you using HTTP/1.1 or HTTP/2?

Strike that, it's in the title. Yeah I think we can support this. Want to try sending a PR for this? 🙃

@whatyouhide whatyouhide changed the title Permit processing HTTP1 headers as they arrive Permit processing HTTP/1.1 headers as they arrive Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants