KestrunHostMapExtensions.MapExists method (1 of 2)

Checks if a route with the specified pattern and optional HTTP method exists in the KestrunHost.

public static bool MapExists(this KestrunHost host, string pattern, HttpVerb verb)
parameter description
host The KestrunHost instance.
pattern The route pattern to check.
verb The optional HTTP method to check for the route.

Return Value

True if the route exists; otherwise, false.

See Also


KestrunHostMapExtensions.MapExists method (2 of 2)

Checks if a route with the specified pattern and optional HTTP method exists in the KestrunHost.

public static bool MapExists(this KestrunHost host, string pattern, IEnumerable<HttpVerb> verbs)
parameter description
host The KestrunHost instance.
pattern The route pattern to check.
verbs The optional HTTP method to check for the route.

Return Value

True if the route exists; otherwise, false.

See Also