MCPcopy Create free account
hub / github.com/angular/dev-infra / delete

Method delete

github-actions/bazel/configure-remote/configure-remote.js:16031–16072  ·  view source on GitHub ↗
(_0)

Source from the content-addressed store, hash-verified

16029 if (innerResponse.body && (isDisturbed(innerResponse.body.stream) || innerResponse.body.stream.locked)) {
16030 throw webidl.errors.exception({
16031 header: prefix,
16032 message: "Response body is locked or disturbed"
16033 });
16034 }
16035 const clonedResponse = cloneResponse(innerResponse);
16036 const bodyReadPromise = createDeferredPromise();
16037 if (innerResponse.body != null) {
16038 const stream = innerResponse.body.stream;
16039 const reader = stream.getReader();
16040 readAllBytes(reader).then(bodyReadPromise.resolve, bodyReadPromise.reject);
16041 } else {
16042 bodyReadPromise.resolve(void 0);
16043 }
16044 const operations = [];
16045 const operation = {
16046 type: "put",
16047 // 14.
16048 request: innerRequest,
16049 // 15.
16050 response: clonedResponse
16051 // 16.
16052 };
16053 operations.push(operation);
16054 const bytes = yield bodyReadPromise.promise;
16055 if (clonedResponse.body != null) {
16056 clonedResponse.body.source = bytes;
16057 }
16058 const cacheJobPromise = createDeferredPromise();
16059 let errorData = null;
16060 try {
16061 __privateMethod(this, _batchCacheOperations, batchCacheOperations_fn).call(this, operations);
16062 } catch (e) {
16063 errorData = e;
16064 }
16065 queueMicrotask(() => {
16066 if (errorData === null) {
16067 cacheJobPromise.resolve();
16068 } else {
16069 cacheJobPromise.reject(errorData);
16070 }
16071 });
16072 return cacheJobPromise.promise;
16073 });
16074 }
16075 delete(_0) {

Callers 10

constructorMethod · 0.45
setMethod · 0.45
[kClose]Method · 0.45
runLookupMethod · 0.45
deleteMethod · 0.45
deleteMethod · 0.45
abortFunction · 0.45
httpRedirectFetchFunction · 0.45
httpNetworkOrCacheFetchFunction · 0.45
deleteMethod · 0.45

Calls 4

__asyncFunction · 0.70
createDeferredPromiseFunction · 0.70
__privateMethodFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected