net/http

Go's standard library package for HTTP, providing both a production-ready web server and an HTTP client.

In more detail

The client side sends requests with http.Client; the server side routes requests to handlers with http.ServeMux and serves them with http.Server. Many Go services use nothing else for HTTP.

Example

import "net/http"

Related terms

Taught in

References