Skip to content

Glossary: Go Beyond the Basics

handler (HTTP)

Also written: handler, handlers, handler function

A function that answers an HTTP request, with the form `func(w http.ResponseWriter, r *http.Request)`. The request comes in as `r` and the response goes out through `w`.

Where the book teaches it

Related terms

routermiddlewarehttp.Handler