Handler is an interface providing a generic mechanism for handling HTTP requests.
| 12 | |
| 13 | // Handler is an interface providing a generic mechanism for handling HTTP requests. |
| 14 | type Handler interface { |
| 15 | Handle(w http.ResponseWriter, r *http.Request) error |
| 16 | } |
| 17 | |
| 18 | // HTTPHandler is a wrapper that encapsulates Handler interface as http.Handler. |
| 19 | // HTTPHandler also enforces that the Handler only responds to requests with registered HTTP methods. |
no outgoing calls
no test coverage detected
searching dependent graphs…