Documentation ¶
Index ¶
- func GetHttpParam(ctx context.Context, name string) string
- func GetResponseWriter(ctx context.Context) http.ResponseWriter
- type Handle
- type MyRouter
- func (mr *MyRouter) DELETE(path string, handle Handle)
- func (mr *MyRouter) GET(path string, handle Handle)
- func (mr *MyRouter) Group(path string, fn func(r *MyRouter))
- func (mr *MyRouter) Handle(path, method string, handle Handle)
- func (mr *MyRouter) Handler(path, method string, handler http.Handler)
- func (mr *MyRouter) HttpHandler() http.Handlerdeprecated
- func (mr *MyRouter) PATCH(path string, handle Handle)
- func (mr *MyRouter) POST(path string, handle Handle)
- func (mr *MyRouter) PUT(path string, handle Handle)
- func (mr *MyRouter) ServeFiles(path string, root http.FileSystem)
- func (mr *MyRouter) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResponseWriter ¶
func GetResponseWriter(ctx context.Context) http.ResponseWriter
Types ¶
type MyRouter ¶
type MyRouter struct { Httprouter *httprouter.Router WrappedHandler http.Handler Options *Options // contains filtered or unexported fields }
func (*MyRouter) HttpHandler
deprecated
func (*MyRouter) ServeFiles ¶
func (mr *MyRouter) ServeFiles(path string, root http.FileSystem)
Click to show internal directories.
Click to hide internal directories.