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

http3: implement on the HTTPStreamer on the ResponseWriter, flush header #4469

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

marten-seemann
Copy link
Member

Currently the HTTPStreamer is implemented on the http.Request.Body. This complicates usage, since it's not easily possible to flush the HTTP header, requiring users to manually flash the header before taking over the stream.

With this change, the HTTP header is now flushed automatically as soon as HTTPStream is called.

Currently the HTTPStreamer is implemented on the http.Request.Body. This
complicates usage, since it's not easily possible to flush the HTTP
header, requiring users to manually flash the header before taking over
the stream.

With this change, the HTTP header is now flushed automatically as soon
as HTTPStream is called.
Copy link

codecov bot commented Apr 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.81%. Comparing base (083ceb4) to head (834996c).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4469      +/-   ##
==========================================
+ Coverage   84.79%   84.81%   +0.01%     
==========================================
  Files         154      154              
  Lines       14645    14645              
==========================================
+ Hits        12418    12420       +2     
+ Misses       1715     1713       -2     
  Partials      512      512              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marten-seemann marten-seemann merged commit 34f4d14 into master Apr 27, 2024
34 checks passed
@marten-seemann marten-seemann deleted the http3-httpstreamer-responsewriter branch April 27, 2024 14:36
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.

http3: HTTPStreamer API requires flushing to write response header
1 participant