Skip to content

Glossary: Software Design Patterns in Go

Handler

Also written: handlers, HTTP handler, http.Handler

One link in a chain of responsibility: it deals with a request or passes it on. In `net/http`, a handler is the code that answers a web request, such as `listOrders`.

Where the book teaches it

Related terms

Chain of responsibilityMiddleware