http3: remove Settingser, StreamCreator, return Connection from Hijacker (#4425)

This commit is contained in:
Marten Seemann
2024-04-11 08:47:00 -07:00
committed by GitHub
parent ee698b326f
commit 9efc324637
6 changed files with 27 additions and 85 deletions

View File

@@ -210,7 +210,7 @@ func (s *requestStream) ReadResponse() (*http.Response, error) {
} else {
httpStr = s.stream
}
respBody := newResponseBody(httpStr, s.conn, s.reqDone)
respBody := newResponseBody(httpStr, s.reqDone)
// Rules for when to set Content-Length are defined in https://tools.ietf.org/html/rfc7230#section-3.3.2.
_, hasTransferEncoding := res.Header["Transfer-Encoding"]