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

Function ingoreMainHandlerName

context/handler.go:283–296  ·  view source on GitHub ↗

ingoreMainHandlerName reports whether a main handler of "name" should be ignored and continue to match the next. The ignored main handler names are literals and respects the `ignoreNameHandlers` too.

(name string)

Source from the content-addressed store, hash-verified

281// be ignored and continue to match the next.
282// The ignored main handler names are literals and respects the `ignoreNameHandlers` too.
283func ingoreMainHandlerName(name string) bool {
284 if IgnoreHandlerName(name) {
285 // If ignored at all, it can't be the main.
286 return true
287 }
288
289 for _, ignore := range ignoreMainHandlerNames {
290 if name == ignore {
291 return true
292 }
293 }
294
295 return false
296}
297
298// Filter is just a type of func(Context) bool which reports whether an action must be performed
299// based on the incoming request.

Callers 1

MainHandlerNameFunction · 0.85

Calls 1

IgnoreHandlerNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…