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

allow access to the underlying quic.Stream from a http.ResponseWriter #2993

Merged
merged 1 commit into from
Jan 17, 2021

Conversation

marten-seemann
Copy link
Member

Fixes #1492.

@codecov
Copy link

codecov bot commented Jan 11, 2021

Codecov Report

Merging #2993 (35939b2) into master (d1c5297) will increase coverage by 0.76%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2993      +/-   ##
==========================================
+ Coverage   86.12%   86.88%   +0.76%     
==========================================
  Files         135      135              
  Lines        9379    10055     +676     
==========================================
+ Hits         8077     8736     +659     
- Misses        943      959      +16     
- Partials      359      360       +1     
Impacted Files Coverage Δ
http3/response_writer.go 77.78% <76.92%> (+7.78%) ⬆️
http3/server.go 69.17% <100.00%> (+0.35%) ⬆️
zero_rtt_queue.go 92.31% <0.00%> (-1.81%) ⬇️
internal/ackhandler/received_packet_handler.go 75.00% <0.00%> (-1.12%) ⬇️
internal/congestion/pacer.go 100.00% <0.00%> (ø)
qlog/event.go 98.26% <0.00%> (+0.51%) ⬆️
qlog/qlog.go 95.59% <0.00%> (+0.97%) ⬆️
qlog/packet_header.go 96.92% <0.00%> (+1.27%) ⬆️
internal/wire/transport_parameters.go 91.02% <0.00%> (+2.40%) ⬆️
logging/multiplex.go 100.00% <0.00%> (+2.56%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1c5297...35939b2. Read the comment docs.

//
// It becomes the caller's responsibility to manage and close the connection.
//
// After a call to DataStreamer, the original Request.Body must not be used.
Copy link
Member

Choose a reason for hiding this comment

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

-r

"github.com/lucas-clemente/quic-go/internal/utils"
"github.com/marten-seemann/qpack"
)

// DataStreamer lets the caller take over the stream. After a call to DataStreamer
Copy link
Member

Choose a reason for hiding this comment

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

-r

http3/response_writer.go Show resolved Hide resolved
@marten-seemann marten-seemann merged commit a7f1615 into master Jan 17, 2021
@marten-seemann marten-seemann deleted the response-writer-data-streamer branch January 17, 2021 08:45
@aschmahmann aschmahmann mentioned this pull request May 14, 2021
71 tasks
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 underlying data stream in h2quic
2 participants