MCPcopy Create free account
hub / github.com/kataras/iris / newApp

Function newApp

_examples/routing/http-errors/reset-body/main.go:14–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14func newApp() *iris.Application {
15 app := iris.New()
16 app.Use(iris.Compression)
17
18 app.OnAnyErrorCode(onErrorCode)
19 app.Get("/", handler)
20
21 app.Configure(iris.WithResetOnFireErrorCode)
22 return app
23}
24
25// This is the default error handler Iris uses for any error codes.
26func onErrorCode(ctx iris.Context) {

Callers 2

mainFunction · 0.70

Calls 5

NewMethod · 0.80
UseMethod · 0.65
OnAnyErrorCodeMethod · 0.65
GetMethod · 0.65
ConfigureMethod · 0.65

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…