MCPcopy Index your code
hub / github.com/angular/angular / put

Method put

packages/service-worker/worker/testing/cache.ts:169–178  ·  view source on GitHub ↗
(request: RequestInfo, response: Response)

Source from the content-addressed store, hash-verified

167 }
168
169 async put(request: RequestInfo, response: Response): Promise<void> {
170 const url = this.getRequestUrl(request);
171 this.cache.set(url, response.clone());
172
173 // Even though the body above is cloned, consume it here because the
174 // real cache consumes the body.
175 await response.text();
176
177 return;
178 }
179
180 dehydrate(): DehydratedCache {
181 const dehydrated: DehydratedCache = {};

Callers

nothing calls this directly

Calls 4

getRequestUrlMethod · 0.95
setMethod · 0.65
cloneMethod · 0.65
textMethod · 0.65

Tested by

no test coverage detected