feature: add optional context to handlers #19

Merged
xdrm-brackets merged 9 commits from feature/context into 0.3.0 2021-05-10 14:42:58 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 939ab2e57d - Show all commits

View File

@ -12,6 +12,6 @@ import (
// If required, set api.Ctx as the first argument of your handler; if you
// don't need it, only use standard input arguments and it will be ignored
type Ctx struct {
w http.ResponseWriter
r *http.Request
Res http.ResponseWriter
Req *http.Request
}