MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / normalize_server_url

Function normalize_server_url

atomic-identity/src/delegation.rs:392–394  ·  view source on GitHub ↗

Normalize a server URL for comparison: lowercased, no trailing slash.

(url: &str)

Source from the content-addressed store, hash-verified

390
391/// Normalize a server URL for comparison: lowercased, no trailing slash.
392fn normalize_server_url(url: &str) -> String {
393 url.trim().trim_end_matches('/').to_lowercase()
394}
395
396/// An empty pattern list is unrestricted; otherwise the value must match one.
397fn matches_any(patterns: &[String], value: &str) -> bool {

Callers 1

allows_serverMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected