Skip to content

Commit

Permalink
Include "404" and "405" in the docs (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jille committed Sep 14, 2021
1 parent d07530f commit 3cf0d01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mux.go
Expand Up @@ -46,9 +46,11 @@ func NewRouter() *Router {
// This will send all incoming requests to the router.
type Router struct {
// Configurable Handler to be used when no route matches.
// This can be used to render your own 404 Not Found errors.
NotFoundHandler http.Handler

// Configurable Handler to be used when the request method does not match the route.
// This can be used to render your own 405 Method Not Allowed errors.
MethodNotAllowedHandler http.Handler

// Routes to be matched, in order.
Expand Down

0 comments on commit 3cf0d01

Please sign in to comment.