router.go 290 B

1234567891011
  1. package httpx
  2. import "net/http"
  3. // Router interface represents a http router that handles http requests.
  4. type Router interface {
  5. http.Handler
  6. Handle(method, path string, handler http.Handler) error
  7. SetNotFoundHandler(handler http.Handler)
  8. SetNotAllowedHandler(handler http.Handler)
  9. }