This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Go · Archive · Week 28 · Jul 6 – 12, 2026

x/net/http2: deprecate Transport and Server

Worth knowingstdlib

What changed
The proposal deprecates the x/net/http2 Transport and Server types, the ConfigureServer, ConfigureTransport, and ConfigureTransports functions, the ClientConn and ClientConnState types, and the RoundTripOpt and ServeConnOpts option types.
Production impact
The source does not say.
Try it
Run go doc net/http to see the deprecation notices for HTTP/2 configuration.
Source
github.com/golang/go/issues/78064

Understand it, then run it

Run it now

Todaygo
// This program shows that HTTP/2 can be used with the standard net/http
// package without importing x/net/http2. It starts a local HTTPS server
// that automatically serves HTTP/2, then makes a request to it using a
// net/http Transport configured for TLS. The output confirms the
// request succeeded and the server responded with status 200.
package main

import (
	"crypto/tls"
	"fmt"
	"net/http"
	"net/http/httptest"
)

func main() {
	// Create a test HTTPS server that serves HTTP/2 automatically.
	server := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		fmt.Fprintln(w, "Hello, HTTP/2!")
	}))
	defer server.Close()

	// Configure a client Transport that uses TLS with the server's cert.
	transport := &http.Transport{
		TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
	}
	client := &http.Client{Transport: transport}

	// Make a request to the test server.
	resp, err := client.Get(server.URL)
	if err != nil {
		fmt.Println("request error:", err)
		return
	}
	defer resp.Body.Close()

	// Print the status code to show the request succeeded.
	fmt.Println("Response status:", resp.Status)
}

What it printed when we ran it on Go 1.27.1

Response status: 200 OK

Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.

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