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

Function normalize_http_path

crates/openshell-server/src/multiplex.rs:734–740  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

732}
733
734fn normalize_http_path(path: &str) -> &'static str {
735 match path {
736 p if p.starts_with("/_ws_tunnel") => "/_ws_tunnel",
737 p if p.starts_with("/auth/") => "/auth",
738 _ => "unknown",
739 }
740}
741
742/// Extract an [`Identity`] from the peer certificates presented during a TLS
743/// handshake. Returns `None` if no client certificate was presented.

Callers 1

callMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected