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

Function normalize_host

crates/openshell-server/src/http.rs:325–328  ·  view source on GitHub ↗
(host: &str)

Source from the content-addressed store, hash-verified

323}
324
325fn normalize_host(host: &str) -> Option<String> {
326 let host = host.trim().trim_end_matches('.').to_ascii_lowercase();
327 (!host.is_empty()).then_some(host)
328}
329
330#[cfg(test)]
331mod tests {

Callers 1

parse_origin_authorityFunction · 0.70

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected