MCPcopy
hub / github.com/nodejs/undici / error

Method error

lib/web/fetch/response.js:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34 // Creates network error Response.
35 static error () {
36 // The static error() method steps are to return the result of creating a
37 // Response object, given a new network error, "immutable", and this’s
38 // relevant Realm.
39 const responseObject = fromInnerResponse(makeNetworkError(), 'immutable')
40
41 return responseObject
42 }
43
44 // https://fetch.spec.whatwg.org/#dom-response-json
45 static json (data, init = undefined) {

Callers 15

abortFetchFunction · 0.45
onAbortedFunction · 0.45
esm-wrapper.jsFile · 0.45
runSingleTestFunction · 0.45
setupHostsFileFunction · 0.45
setupFunction · 0.45
fetch.test-d.tsFile · 0.45
cache-tests.mjsFile · 0.45
nextTestFunction · 0.45
client.jsFile · 0.45
response.jsFile · 0.45
basicSocks5ExampleFunction · 0.45

Calls 2

fromInnerResponseFunction · 0.85
makeNetworkErrorFunction · 0.85

Tested by

no test coverage detected