MCPcopy Create free account
hub / github.com/nodejs/node / processEndOfBody

Function processEndOfBody

deps/undici/src/lib/web/fetch/index.js:1948–1959  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1946
1947 // 2. Let processEndOfBody be these steps:
1948 const processEndOfBody = () => {
1949 // 1. If fetchParams is canceled, then abort these steps.
1950 if (isCancelled(fetchParams)) {
1951 return
1952 }
1953
1954 // 2. If fetchParams’s process request end-of-body is non-null,
1955 // then run fetchParams’s process request end-of-body.
1956 if (fetchParams.processRequestEndOfBody) {
1957 fetchParams.processRequestEndOfBody()
1958 }
1959 }
1960
1961 // 3. Let processBodyError given e be these steps:
1962 const processBodyError = (e) => {

Callers 2

httpNetworkFetchFunction · 0.85
httpNetworkFetchFunction · 0.85

Calls 1

isCancelledFunction · 0.70

Tested by

no test coverage detected