This commit is contained in:
Gerasimos (Makis) Maropoulos 2022-03-31 20:58:40 +03:00
parent 4f81478ad6
commit 60e19de9e2
No known key found for this signature in database
GPG Key ID: 66FCC29BD385FCA6

View File

@ -3971,6 +3971,7 @@ const jsonOptionsContextKey = "iris.context.json_options"
// ctx.SetJSONOptions(iris.JSON{
// ErrorHandler: errHandler,
// })
// ctx.Next()
// })
func (ctx *Context) SetJSONOptions(opts JSON) {
ctx.values.Set(jsonOptionsContextKey, opts)