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

Function isNetworkError

deps/undici/undici.js:12256–12262  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

12254 }
12255 __name(makeNetworkError, "makeNetworkError");
12256 function isNetworkError(response) {
12257 return (
12258 // A network error is a response whose type is "error",
12259 response.type === "error" && // status is 0
12260 response.status === 0
12261 );
12262 }
12263 __name(isNetworkError, "isNetworkError");
12264 function makeFilteredResponse(response, state) {
12265 state = {

Callers 1

#connectMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected