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

Function abort

github-actions/browserstack/set-browserstack-env.js:6672–6679  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

6670 contentLength = bodyLength != null ? bodyLength : contentLength;
6671 if (contentLength === null) {
6672 contentLength = request.contentLength;
6673 }
6674 if (contentLength === 0 && !expectsPayload) {
6675 contentLength = null;
6676 }
6677 if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength !== null && request.contentLength !== contentLength) {
6678 if (client[kStrictContentLength]) {
6679 util.errorRequest(client, request, new RequestContentLengthMismatchError());
6680 return false;
6681 }
6682 process.emitWarning(new RequestContentLengthMismatchError());

Callers 12

onConnectMethod · 0.70
writeBufferFunction · 0.70
writeBlobFunction · 0.70
destroyMethod · 0.70
writeH2Function · 0.70
writeStreamFunction · 0.70
writeIterableFunction · 0.70
onConnectMethod · 0.70
addSignalFunction · 0.70
onHeadersMethod · 0.70
constructorMethod · 0.70
onConnectFunction · 0.70

Calls 8

removeSignalFunction · 0.70
destroyMethod · 0.45
abortMethod · 0.45
derefMethod · 0.45
unregisterMethod · 0.45
getMethod · 0.45
clearMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected