Skip to main content

match_endpoint

Function match_endpoint 

Source
pub fn match_endpoint<'a>(
    url_path: &str,
    method: Option<&str>,
    endpoints: &'a [DetectedEndpoint],
) -> Option<(&'a DetectedEndpoint, f64)>
Expand description

Match a client call URL against registered endpoints.

Returns the best matching endpoint with confidence.