Browse Source

Include "404" and "405" in the docs (#602)

pull/647/merge
Jille Timmermans 4 years ago committed by GitHub
parent
commit
3cf0d013e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      mux.go

2
mux.go

@ -46,9 +46,11 @@ func NewRouter() *Router { @@ -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.

Loading…
Cancel
Save