|
|
|
@ -46,9 +46,11 @@ func NewRouter() *Router { |
|
|
|
// This will send all incoming requests to the router.
|
|
|
|
// This will send all incoming requests to the router.
|
|
|
|
type Router struct { |
|
|
|
type Router struct { |
|
|
|
// Configurable Handler to be used when no route matches.
|
|
|
|
// Configurable Handler to be used when no route matches.
|
|
|
|
|
|
|
|
// This can be used to render your own 404 Not Found errors.
|
|
|
|
NotFoundHandler http.Handler |
|
|
|
NotFoundHandler http.Handler |
|
|
|
|
|
|
|
|
|
|
|
// Configurable Handler to be used when the request method does not match the route.
|
|
|
|
// 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 |
|
|
|
MethodNotAllowedHandler http.Handler |
|
|
|
|
|
|
|
|
|
|
|
// Routes to be matched, in order.
|
|
|
|
// Routes to be matched, in order.
|
|
|
|
|