Documentation ¶
Index ¶
- func New(options ...Option) http.Handler
- type NestingHandler
- type Option
- func Compound(options ...Option) Option
- func DELETE(path string, handlers ...NestingHandler) Option
- func GET(path string, handlers ...NestingHandler) Option
- func HEAD(path string, handlers ...NestingHandler) Option
- func MethodNotAllowed(handler http.Handler) Option
- func NotFound(handler http.Handler) Option
- func OPTIONS(path string, handlers ...NestingHandler) Option
- func POST(path string, handlers ...NestingHandler) Option
- func PUT(path string, handlers ...NestingHandler) Option
- func Panic(callback func(http.ResponseWriter, *http.Request, interface{})) Option
- func Prepend(handlers ...NestingHandler) Option
- func Register(methods, paths string, handlers ...NestingHandler) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*routesBuilder)
func DELETE ¶
func DELETE(path string, handlers ...NestingHandler) Option
func GET ¶
func GET(path string, handlers ...NestingHandler) Option
func HEAD ¶
func HEAD(path string, handlers ...NestingHandler) Option
func MethodNotAllowed ¶
func OPTIONS ¶
func OPTIONS(path string, handlers ...NestingHandler) Option
func POST ¶
func POST(path string, handlers ...NestingHandler) Option
func PUT ¶
func PUT(path string, handlers ...NestingHandler) Option
func Prepend ¶
func Prepend(handlers ...NestingHandler) Option
func Register ¶
func Register(methods, paths string, handlers ...NestingHandler) Option
Click to show internal directories.
Click to hide internal directories.