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)
| 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. |
| 697 | func (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 | } |
nothing calls this directly
no test coverage detected