net/http package
Canonical package docs for HTTP servers, handlers, transports, clients, and request lifecycles.
Canonical package docs for HTTP servers, handlers, transports, clients, and request lifecycles.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/net/http
What it covers
- HTTP clients and transports
- servers and handlers
- request and response APIs
Why authoritative
Official package documentation for Go’s HTTP stack.
Use when
- how should I use net/http here
- is this Go HTTP client usage correct
- which net/http type should I use
Keywords
- net/http, http client, http server, handlers, transport