Skip to content

Glossary: Go in Practice

Handler

Also written: http.Handler, http.HandlerFunc, handlers

A function `func(w http.ResponseWriter, r *http.Request)` that answers one kind of request. `http.HandlerFunc` turns a plain function into a handler.

Where the book teaches it

Related terms

Muxhttptest.NewServer