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: expose an OpenStream method on the RoundTripper #4409

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

marten-seemann
Copy link
Member

Part of #3522.

The stream exposes two methods required for doing an HTTP request: SendRequestHeader and ReadResponse. This can be used by applications that wish to use the stream for non-HTTP content afterwards. This will lead to a simplification in the API we need to expose for WebTransport, and will make it easier to send HTTP Datagrams associated with this stream.

@marten-seemann marten-seemann changed the title expose an OpenStream method on the RoundTripper http3: expose an OpenStream method on the RoundTripper Apr 3, 2024
@marten-seemann marten-seemann force-pushed the roundtripper-open-stream branch 2 times, most recently from bc715af to f19b6e3 Compare April 3, 2024 20:39
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 73.85621% with 40 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (master@e310b80). Click here to learn what that means.

❗ Current head 8df1332 differs from pull request most recent head 125b702. Consider uploading reports for the commit 125b702 to get more accurate results

Files Patch % Lines
http3/http_stream.go 82.47% 12 Missing and 5 partials ⚠️
http3/client.go 62.16% 12 Missing and 2 partials ⚠️
http3/roundtrip.go 12.50% 7 Missing ⚠️
http3/server.go 60.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #4409   +/-   ##
=========================================
  Coverage          ?   84.86%           
=========================================
  Files             ?      152           
  Lines             ?    14396           
  Branches          ?        0           
=========================================
  Hits              ?    12216           
  Misses            ?     1683           
  Partials          ?      497           

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

The stream exposes two methods required for doing an HTTP request:
SendRequestHeader and ReadResponse. This can be used by applications
that wish to use the stream for non-HTTP content afterwards. This will
lead to a simplification in the API we need to expose for WebTransport,
and will make it easier to send HTTP Datagrams associated with this
stream.
@marten-seemann marten-seemann merged commit eb310a6 into master Apr 9, 2024
34 checks passed
@marten-seemann marten-seemann deleted the roundtripper-open-stream branch April 9, 2024 22:56
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.

None yet

1 participant