Skip to content

Glossary: Go Beyond the Basics

http.Handler

Also written: ServeHTTP

An interface: anything with a `ServeHTTP(w, r)` method, such as the router. Middleware takes one and returns another.

Where the book teaches it

Related terms

http.HandlerFuncmiddlewarerouter