MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / normalizeUrl

Method normalizeUrl

server/src/validator.ts:550–556  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

548 }
549
550 private normalizeUrl(value: string): string {
551 let normalized = value;
552 while (normalized.endsWith("/")) {
553 normalized = normalized.slice(0, -1);
554 }
555 return normalized;
556 }
557
558 private buildAdAgentsUrl(normalizedDomain: string): URL {
559 const domain = this.normalizeDomain(normalizedDomain);

Callers 2

validateMethod · 0.95
matchesAuthorizationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected