github.com/lingyao2333/mo-zero@v1.4.1/rest/httpx/router.go (about)

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