Skip to content

override 404 and 405 handlers #19

Open
@dvic

Description

@dvic

Is it possible to override the 404 and 405 handlers of a route/group? Is it something you would like to have? I could submit a PR, making a NewFromOpts where you can pass the following:

  • 404 handlersChain HandlersChain
  • 405 handlersChain HandlersChain
  • redirectTrailingSlash bool
  • handleMethodNotAllowed bool
  • automaticallyHandleOPTIONS bool

By the way: just wanted to say that I really like this router, AWESOME work! Lately I have been looking extensively into the 'router ecosystem' of Go 😉 and this is exactly what I was looking for! 👍

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions