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

Method RouteExists

core/router/handler.go:697–706  ·  view source on GitHub ↗

RouteExists reports whether a particular route exists It will search from the current subdomain of context's host, if not inside the root domain.

(ctx *context.Context, method, path string)

Source from the content-addressed store, hash-verified

695// RouteExists reports whether a particular route exists
696// It will search from the current subdomain of context's host, if not inside the root domain.
697func (h *routerHandler) RouteExists(ctx *context.Context, method, path string) bool {
698 for i := range h.trees {
699 t := h.trees[i]
700 if h.subdomainAndPathAndMethodExists(ctx, t, method, path) {
701 return true
702 }
703 }
704
705 return false
706}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected