(init)
| 364 | } |
| 365 | |
| 366 | function makeResponse (init) { |
| 367 | return { |
| 368 | aborted: false, |
| 369 | rangeRequested: false, |
| 370 | timingAllowPassed: false, |
| 371 | requestIncludesCredentials: false, |
| 372 | type: 'default', |
| 373 | status: 200, |
| 374 | timingInfo: null, |
| 375 | cacheState: '', |
| 376 | statusText: '', |
| 377 | ...init, |
| 378 | headersList: init?.headersList |
| 379 | ? new HeadersList(init?.headersList) |
| 380 | : new HeadersList(), |
| 381 | urlList: init?.urlList ? [...init.urlList] : [] |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | function makeNetworkError (reason) { |
| 386 | const isError = isErrorLike(reason) |
no outgoing calls
no test coverage detected