Versions in this module Expand all Collapse all v0 v0.0.1 Sep 10, 2025 Changes in this version + var HandleError = func(w http.ResponseWriter, err error) + func Binding(req *http.Request, params []BindingField) error + func GetHeader(ctx context.Context, key string) string + func GetReq(ctx context.Context) *http.Request + func HandleJSON[Req, Resp Object](h JSONHandler[Req, Resp]) http.HandlerFunc + func HandleStream[Req, Resp Object](h StreamHandler[Req, Resp]) http.HandlerFunc + func ReadRequest(r *http.Request, i Object) error + func SetCookie(ctx context.Context, cookie *http.Cookie) + func SetHTTPCode(ctx context.Context, httpCode int) + func SetHeader(ctx context.Context, key, value string) + type BindingField struct + Field string + From string + Name string + Target any + type JSONHandler func(context.Context, Req) Resp + type Object interface + Binding func(req *http.Request) error + New func() any + Validate func() error + type StreamHandler func(context.Context, Req, chan<- Resp)