You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
net/http/internal/http2: clean up x/net crufts #81473
Our HTTP/2 implementation used to live in x/net, and there were two ways of using it:
Indirectly via net/http.
Directly via x/net.
As such, the code is littered with various logic and documentations that account for both modes of usage (e.g., was a connection dialed in net/http and then handed to HTTP/2? Or, did HTTP/2 dial it on its own?).
Now that HTTP/2 lives in net/http/internal/http2 (#67810), many parts of the package that deal with direct usage from x/net are essentially dead / stale. Furthermore, various copied / similar implementations between net/http and HTTP/2 can now be consolidated.
This is an overall tracking bug for cleaning up all such clutters.
Activity
gopherbot commentedon Sep 11, 2026
Change https://go.dev/cl/831185 mentions this issue:
net/http/internal/http2: remove unused Transport dialing codegopherbot commentedon Sep 11, 2026
Change https://go.dev/cl/831186 mentions this issue:
net/http/internal/http2: remove unused ClientConn.isDoNotReuseAndIdlegopherbot commentedon Sep 11, 2026
Change https://go.dev/cl/831188 mentions this issue:
net/http/internal/http2: read GODEBUG settings with internal/godebuggopherbot commentedon Sep 11, 2026
Change https://go.dev/cl/831187 mentions this issue:
net/http/internal/http2: use net/http/internal/ascii instead of its copygopherbot commentedon Sep 11, 2026
Change https://go.dev/cl/831184 mentions this issue:
net/http/internal/http2: remove stale fields and nil checksnet/http/internal/http2: remove stale fields and nil checks
net/http/internal/http2: remove unused Transport dialing code
net/http/internal/http2: remove unused ClientConn.isDoNotReuseAndIdle
net/http/internal/http2: use net/http/internal/ascii instead of its copy
net/http/internal/http2: read GODEBUG settings with internal/godebug
gopherbot commentedon Sep 11, 2026
Change https://go.dev/cl/831344 mentions this issue:
net/http/internal/httpcommon: unify gzip reader implementationgopherbot commentedon Sep 11, 2026
Change https://go.dev/cl/831364 mentions this issue:
internal/http3, internal/httpcommon: move gzip reader implementationinternal/http3, internal/httpcommon: move gzip reader implementation
net/http/internal/httpcommon: deduplicate gzip reader implementation