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

Function canon

crates/openshell-supervisor-network/src/l7/path.rs:350–353  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

348 use super::*;
349
350 fn canon(input: &str) -> Result<String, CanonicalizeError> {
351 let opts = CanonicalizeOptions::default();
352 canonicalize_request_target(input, &opts).map(|(p, _)| p.path)
353 }
354
355 fn canon_with(input: &str, opts: CanonicalizeOptions) -> Result<String, CanonicalizeError> {
356 canonicalize_request_target(input, &opts).map(|(p, _)| p.path)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected