pub fn check_route(
routes: Vec<Route>,
method: &Method,
url: &Url,
headers: &HeaderMap,
search_config: Option<&SearchConfig>,
) -> Result<ResolvedRoute>Expand description
Check route resolution.
Resolves a route against a table of routes, returning the chosen Route, the index of the rule that matched, and the BackendId selected based on the route.
Use this function to test routing configuration without requiring a full client or a live connection to a control plane. For actual route resolution, see Client::resolve_http.