HTTP Requests
suggest changeSyntax
- fetch(url, options)[.then(…)[.catch(…)]]
Remarks
- The Fetch API is the most commonly used API for HTTP requests. It is modern, flexible and it uses promises.
- The XMLHttpRequest API is also used for HTTP requests and is mainly included so that developers may use their favorite existing libraries, like ApiSauce.
- The Websocket API may be used for “live” data in real time scenarios, such as in chat applications.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents