Skip to main content

pick_route

Function pick_route 

Source
pub fn pick_route<'a>(
    routes: &'a [CompiledHttpRoute],
    sni: Option<&str>,
) -> Option<&'a CompiledHttpRoute>
Available on crate feature gateway-api only.
Expand description

The route a connection goes to: the best hostname match for sni (a route without hostnames matches anything, below any hostname match), ties to the oldest route, then namespace/name.