MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / path_specificity

Method path_specificity

crates/openshell-supervisor-network/src/l7/mod.rs:274–280  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

272 }
273
274 pub fn path_specificity(&self) -> usize {
275 if self.path.is_empty() {
276 0
277 } else {
278 self.path.chars().filter(|c| *c != '*').count()
279 }
280 }
281}
282
283pub fn endpoint_path_matches(pattern: &str, path: &str) -> bool {

Callers 2

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected