A good resource for Javascript fetch API

I found a good resource for working with fetch API.

It covers the following

  • GET: JSON from a URL
  • Custom headers
  • Error handling w/ HTTP status codes
  • CORS example
  • Posting JSON
  • Posting an HTML
  • Form encoded data
  • Uploading a File
  • Uploading Multiple Files
  • Timeouts
  • Progress Percent – Download

Find it here

https://danlevy.net/you-may-not-need-axios/

To learn the fundamentals of fetch API, check out the documentation from Mozilla.

p/s: Do take note that IE doesn’t support fetch API.

Share

You may also like...