mirror of
https://github.com/kataras/iris.git
synced 2025-12-31 16:57:04 +00:00
add example link for IgnoreServerErrors https://github.com/kataras/iris/blob/master/HISTORY.md#th-13-july-2017--v801 🔉
look for details at https://github.com/kataras/iris/blob/master/HISTORY.md#th-13-july-2017--v801 Former-commit-id: 9466a2a6e697f17e5b47cb7cacec087c745af146
This commit is contained in:
@@ -103,6 +103,8 @@ type Configurator func(*Application)
|
||||
// will return `nil` if the server's error was `http/iris#ErrServerClosed`.
|
||||
//
|
||||
// See `Configuration#IgnoreServerErrors []string` too.
|
||||
//
|
||||
// Example: https://github.com/kataras/iris/tree/master/_examples/http-listening/listen-addr/omit-server-errors
|
||||
func WithoutServerError(errors ...error) Configurator {
|
||||
return func(app *Application) {
|
||||
if len(errors) == 0 {
|
||||
@@ -251,6 +253,8 @@ type Configuration struct {
|
||||
//
|
||||
// See `WithoutServerError(...)` function too.
|
||||
//
|
||||
// Example: https://github.com/kataras/iris/tree/master/_examples/http-listening/listen-addr/omit-server-errors
|
||||
//
|
||||
// Defaults to an empty slice.
|
||||
IgnoreServerErrors []string `yaml:"IgnoreServerErrors" toml:"IgnoreServerErrors"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user