react-native-ssl-pinning
react-native-ssl-pinning copied to clipboard
Is fetch API similar to Javascript fetch API
Hi Max,
I want to know if the fetch API same as the fetch API in Javascript in terms of implementation. For example - Is the handling of network errors the same as mentioned below?
A fetch() promise only rejects when a network error is encountered (which is usually when there's a permissions issue or similar). A fetch() promise does not reject on HTTP errors (404, etc.). Instead, a then() handler must check the Response.ok and/or Response.status properties.
Thanks, Rahul