mirror of
https://github.com/kataras/iris.git
synced 2026-01-06 03:27:27 +00:00
Add the new Go 1.8 Shutdown | Remove DisableBanner, is controlled by LoggerPolicy now.
Former-commit-id: 6ef71a4b9f5a79160a42d1111dd924e244ce1f4e
This commit is contained in:
@@ -158,11 +158,6 @@ type Configuration struct {
|
||||
// Defaults to false.
|
||||
FireMethodNotAllowed bool `yaml:"FireMethodNotAllowed"`
|
||||
|
||||
// DisableBanner outputs the iris banner at startup
|
||||
//
|
||||
// Defaults to false.
|
||||
DisableBanner bool `yaml:"DisableBanner"`
|
||||
|
||||
// DisableBodyConsumptionOnUnmarshal manages the reading behavior of the context's body readers/binders.
|
||||
// If setted to true then it
|
||||
// disables the body consumption by the `context.UnmarshalBody/ReadJSON/ReadXML`.
|
||||
@@ -315,15 +310,6 @@ var (
|
||||
}
|
||||
}
|
||||
|
||||
// OptionDisableBanner outputs the iris banner at startup.
|
||||
//
|
||||
// Defaults to false.
|
||||
OptionDisableBanner = func(val bool) OptionSet {
|
||||
return func(c *Configuration) {
|
||||
c.DisableBanner = val
|
||||
}
|
||||
}
|
||||
|
||||
// OptionDisableBodyConsumptionOnUnmarshal manages the reading behavior of the context's body readers/binders.
|
||||
// If setted to true then it
|
||||
// disables the body consumption by the `context.UnmarshalBody/ReadJSON/ReadXML`.
|
||||
@@ -416,7 +402,6 @@ func DefaultConfiguration() Configuration {
|
||||
DisablePathCorrection: DefaultDisablePathCorrection,
|
||||
EnablePathEscape: DefaultEnablePathEscape,
|
||||
FireMethodNotAllowed: false,
|
||||
DisableBanner: false,
|
||||
DisableBodyConsumptionOnUnmarshal: false,
|
||||
TimeFormat: DefaultTimeFormat,
|
||||
Charset: DefaultCharset,
|
||||
|
||||
Reference in New Issue
Block a user