Fetch API
E747835
The Fetch API is a modern JavaScript interface for making asynchronous HTTP requests and handling network resources in web applications.
Statements (53)
| Predicate | Object |
|---|---|
| instanceOf |
Browser technology
ⓘ
JavaScript API ⓘ Web API ⓘ |
| availableIn |
most modern desktop browsers
ⓘ
most modern mobile browsers ⓘ |
| commonlyUsedWith |
Progressive Web Apps
NERFINISHED
ⓘ
Service Worker caching ⓘ async/await syntax ⓘ |
| coreFunction | fetch() ⓘ |
| designGoal |
provide a cleaner, promise-based API
ⓘ
provide a more powerful and flexible fetch mechanism ⓘ unify fetching across different resource types ⓘ |
| errorHandling |
Promise rejection on network error
ⓘ
no rejection on HTTP error status by default ⓘ |
| introducedAs | modern replacement for XMLHttpRequest ⓘ |
| polyfillable | yes, via fetch polyfills for older browsers ⓘ |
| primaryPurpose |
handle network resources
ⓘ
perform HTTP requests ⓘ |
| relatedSpecification |
Fetch Living Standard
NERFINISHED
ⓘ
Service Workers NERFINISHED ⓘ Streams API NERFINISHED ⓘ |
| relatedTechnology |
Axios
NERFINISHED
ⓘ
XMLHttpRequest NERFINISHED ⓘ |
| responseBodyAccess |
response.arrayBuffer()
ⓘ
response.blob() ⓘ response.formData() ⓘ response.json() ⓘ response.text() ⓘ |
| returnTypeOfFetch | Promise ⓘ |
| standardizedBy |
W3C
NERFINISHED
ⓘ
WHATWG NERFINISHED ⓘ |
| supports |
AbortController
NERFINISHED
ⓘ
AbortSignal ⓘ CORS ⓘ HTTP methods GET, POST, PUT, DELETE, etc. ⓘ Headers objects ⓘ JSON payloads ⓘ Promises ⓘ Request objects ⓘ Response objects ⓘ asynchronous operations ⓘ binary data ⓘ cache modes ⓘ credentials modes ⓘ custom request headers ⓘ form data ⓘ redirect handling ⓘ referrer policies ⓘ request modes (same-origin, no-cors, cors) ⓘ streaming responses ⓘ |
| usedInContext |
web applications
ⓘ
web browsers ⓘ |
| usedInLanguage | JavaScript NERFINISHED ⓘ |
Referenced by (5)
Full triples — surface form annotated when it differs from this entity's canonical label.