We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d07530f commit 3cf0d01Copy full SHA for 3cf0d01
mux.go
@@ -46,9 +46,11 @@ func NewRouter() *Router {
46
// This will send all incoming requests to the router.
47
type Router struct {
48
// Configurable Handler to be used when no route matches.
49
+ // This can be used to render your own 404 Not Found errors.
50
NotFoundHandler http.Handler
51
52
// Configurable Handler to be used when the request method does not match the route.
53
+ // This can be used to render your own 405 Method Not Allowed errors.
54
MethodNotAllowedHandler http.Handler
55
56
// Routes to be matched, in order.
0 commit comments