Go’s New Experimental HTTP/3 Support: What It Means for Backend Development
The Go core team proposes an experimental HTTP/3 implementation in the x/net/http3 package, outlining its background, development stages, sample code, and the potential benefits for compatibility, stability, and performance in backend networking.
Reading font
Go’s core team has announced a new proposal to add an experimental HTTP/3 implementation to the x/net/http3 package.
HTTP/3 has been around for several years, and community demand for native support in Go has been growing.
Background
Discussion about HTTP/3 in Go dates back to 2019, with issue #32204 addressing HTTP/3 support in the net/http package.
Three main reasons for the new proposal are: (1) a stable QUIC implementation in x/net/quic, (2) the HTTP/3 standard (RFC 9114) is finalized, and (3) strong community demand, especially for cloud‑native and edge scenarios.
New Proposal: experimental HTTP/3
The goal is simply to add client and server implementations of HTTP/3 to the x/net/http3 package.
The approach mirrors the earlier x/net/quic proposal (#58547): start with an experimental package, allow the API to evolve during development, and submit a formal API review once the implementation is stable.
Development Plan
Stage 1 : develop in an internal package x/net/internal/http3 until the design stabilises.
Stage 2 : move to x/net/http3 and open it for external testing.
Stage 3 : after the API is stable, submit a formal API review proposal.
Possible HTTP/3 Code Example
Current third‑party library quic‑go can be used as follows:
package main
import (
"crypto/tls"
"net/http"
"github.com/quic-go/quic-go/http3"
)
func main() {
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello HTTP/3!"))
})
server := &http3.Server{
Addr: ":8080",
Handler: mux,
TLSConfig: &tls.Config{
// TLS configuration
},
}
server.ListenAndServe()
}A future Go native API might look like this:
package main
import (
"net/http"
"x/net/http3"
)
func main() {
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello HTTP/3!"))
})
// Expected to integrate well with the existing http package
server := &http3.Server{
Addr: ":8080",
Handler: mux,
}
server.ListenAndServe()
}And a simple client usage could be:
package main
import (
"fmt"
"x/net/http3"
)
func main() {
client := &http3.Client{}
resp, err := client.Get("https://example.com")
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response:", resp.Status)
}Personal View
The author expects official support to improve compatibility with the existing net/http package, provide more stable maintenance, and enable better performance thanks to Go’s runtime optimisations.
However, HTTP/3’s complexity means achieving production‑grade stability will require iterative development.
Conclusion
The proposal signals that Go is committing to HTTP/3, using a cautious, incremental development strategy that favours stability for infrastructure‑level features.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.