mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 09:00:20 +08:00
73906f996d
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
12 lines
290 B
Go
12 lines
290 B
Go
package httpx
|
|
|
|
import "net/http"
|
|
|
|
// Router interface represents a http router that handles http requests.
|
|
type Router interface {
|
|
http.Handler
|
|
Handle(method, path string, handler http.Handler) error
|
|
SetNotFoundHandler(handler http.Handler)
|
|
SetNotAllowedHandler(handler http.Handler)
|
|
}
|