(response)
| 396 | |
| 397 | // @see https://fetch.spec.whatwg.org/#concept-network-error |
| 398 | function isNetworkError (response) { |
| 399 | return ( |
| 400 | // A network error is a response whose type is "error", |
| 401 | response.type === 'error' && |
| 402 | // status is 0 |
| 403 | response.status === 0 |
| 404 | ) |
| 405 | } |
| 406 | |
| 407 | function makeFilteredResponse (response, state) { |
| 408 | state = { |
no outgoing calls
no test coverage detected