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

Method apply

core/router/handler_execution_rules.go:88–106  ·  view source on GitHub ↗
(handlers *context.Handlers)

Source from the content-addressed store, hash-verified

86}
87
88func (e ExecutionOptions) apply(handlers *context.Handlers) bool {
89 if !e.Force {
90 return false
91 }
92
93 tmp := *handlers
94
95 for i, h := range tmp {
96 if h == nil {
97 if len(tmp) == 1 {
98 return false
99 }
100 continue
101 }
102 (*handlers)[i] = e.buildHandler(h)
103 }
104
105 return true
106}

Callers 5

dropzone.jsFile · 0.80
constructorMethod · 0.80
bundle.jsFile · 0.80
UseRouterMethod · 0.80
applyExecutionRulesFunction · 0.80

Calls 1

buildHandlerMethod · 0.95

Tested by

no test coverage detected