mirror of
https://github.com/kataras/iris.git
synced 2026-01-19 09:56:02 +00:00
add 'Context.Register/RemoveDependency' for registering dependencies for next handler in the chain from a common iris handler in serve-time
And also, add a Configuration.FireEmptyFormError if end-dev wants to receive an iris.ErrEmptyForm error on missing form data on 'Context.ReadForm/ReadBody' Former-commit-id: a2713bec77375b2908f1f066a46be4f19e6b7a61
This commit is contained in:
5
iris.go
5
iris.go
@@ -575,6 +575,11 @@ var (
|
||||
//
|
||||
// A shortcut for the `context#IsErrPath`.
|
||||
IsErrPath = context.IsErrPath
|
||||
// ErrEmptyForm is the type error which API users can make use of
|
||||
// to check if a form was empty on `Context.ReadForm`.
|
||||
//
|
||||
// A shortcut for the `context#ErrEmptyForm`.
|
||||
ErrEmptyForm = context.ErrEmptyForm
|
||||
// NewProblem returns a new Problem.
|
||||
// Head over to the `Problem` type godoc for more.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user