Function junction_core::check_route

source ยท
pub fn check_route(
    routes: Vec<Route>,
    method: &Method,
    url: &Url,
    headers: &HeaderMap,
) -> 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.