mirror of
https://github.com/kataras/iris.git
synced 2026-01-01 17:27:03 +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:
@@ -53,7 +53,10 @@ type ConfigurationReadOnly interface {
|
||||
// The body will not be changed and existing data before the
|
||||
// context.UnmarshalBody/ReadJSON/ReadXML will be not consumed.
|
||||
GetDisableBodyConsumptionOnUnmarshal() bool
|
||||
|
||||
// GetFireEmptyFormError returns the Configuration.FireEmptyFormError value.
|
||||
// If true then the `context.ReadBody/ReadForm` will return an `iris.ErrEmptyForm`
|
||||
// on empty request form data.
|
||||
GetFireEmptyFormError() bool
|
||||
// GetDisableAutoFireStatusCode returns the configuration.DisableAutoFireStatusCode.
|
||||
// Returns true when the http error status code handler automatic execution turned off.
|
||||
GetDisableAutoFireStatusCode() bool
|
||||
|
||||
Reference in New Issue
Block a user