MCPcopy
hub / github.com/angular/angular / getRequestUrl

Method getRequestUrl

packages/service-worker/worker/testing/cache.ts:201–204  ·  view source on GitHub ↗

Get the normalized URL from a `RequestInfo` value.

(request: RequestInfo)

Source from the content-addressed store, hash-verified

199
200 /** Get the normalized URL from a `RequestInfo` value. */
201 private getRequestUrl(request: RequestInfo): string {
202 const url = typeof request === 'string' ? request : request.url;
203 return normalizeUrl(url, this.origin);
204 }
205
206 /** remove the query/hash part from a url*/
207 private stripQueryAndHash(url: string): string {

Callers 3

'delete'Method · 0.95
matchMethod · 0.95
putMethod · 0.95

Calls 1

normalizeUrlFunction · 0.90

Tested by

no test coverage detected