Sign in

Radar · Go · Archive · Week 24 · Jun 8 – 14, 2026

x/net/http2: move frame operations to x/net/http2/http2frame

Worth knowingstdlib

What changed
The proposal moves the Framer type and all frame‑related types from golang.org/x/net/http2 into a new golang.org/x/net/http2/http2frame package.
Production impact
The source does not say.
Try it
Import golang.org/x/net/http2/http2frame and use http2frame.Framer instead of the old http2.Framer.
Source
github.com/golang/go/issues/67819

Understand it, then run it

The Framer type and many frame‑related types live in the golang.org/x/net/http2 package. Most Go developers use HTTP/2 at a higher level, so they rarely touch those types. The change moves all those frame types into a new package called golang.org/x/net/http2/http2frame. After the move, code that needs to read or write raw HTTP/2 frames imports http2frame instead of http2.

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed