I propose to deprecate the x/net/http2 Transport and Server types.
Every supported feature of these types is available through public APIs in the net/http package. There is no longer any need for users to use these types, and we can now deprecate them.
Specifically, I propose deprecating:
- The Transport and Server types (and implicitly their fields and methods). Users who need an HTTP/2-only client or server can configure the net/http Transport or Server to use only HTTP/2.
- The ConfigureServer, ConfigureTransport, and ConfigureTransports functions. These functions were historically used to configure HTTP/2 behaviors of net/http clients and servers, but net/http supports configuring these settings directly
- The ClientConn and ClientConnState types, which have been superseded by net/http.ClientConn.
- RoundTripOpt and ServeConnOpts, which are options types only used by now-deprecated Transport and Server methods.
This proposal is a superset of #77695, which proposes deprecating only the client connection API.
I propose to deprecate the x/net/http2 Transport and Server types.
Every supported feature of these types is available through public APIs in the net/http package. There is no longer any need for users to use these types, and we can now deprecate them.
Specifically, I propose deprecating:
This proposal is a superset of #77695, which proposes deprecating only the client connection API.