Skip to content

x/net/http2: deprecate Transport and Server #78064

Description

@neild

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolProposalProposal-Accepted

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Accepted

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions