router.go 297 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 string, path string, handler http.Handler) error
  7. SetNotFoundHandler(handler http.Handler)
  8. SetNotAllowedHandler(handler http.Handler)
  9. }