The Go standard library defines two main components for dealing with incoming HTTP requests: the http.Handler type and the http.HandlerFunc type. While http.Handler is an actual interface,
type Handler interface {
ServeHTTP(ResponseWriter, *Request)
