Proposals Unofficial Go proposal tracker

Deprecate Transport, Server, and related HTTP/2 APIs

#78064 · x/net/http2 · medium impact · Implemented ·

The Transport and Server types in golang.org/x/net/http2 will be deprecated. Every feature they support is now available through public APIs in net/http, so users no longer need them.

The following are deprecated:

  • Transport and Server, including their fields and methods.
  • ConfigureServer, ConfigureTransport, and ConfigureTransports. Use net/http settings instead.
  • ClientConn and ClientConnState. Use net/http.ClientConn instead.

To get an HTTP/2-only client or server, configure the net/http Transport or Server directly:

tr := &http.Transport{}
tr.Protocols = new(http.Protocols)
tr.Protocols.SetHTTP2(true)
tr.HTTP2 = &http.HTTP2Config{MaxConcurrentStreams: 100}
client := &http.Client{Transport: tr}
Proposal
#78064 by neild
Status
Implemented on Aug 27, 2026
Impact
medium
Area
x/net/http2