Skip to content

simonpetry/fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetch

A small fetch polyfill made for the fun of it
Wanted to dig a bit deeper into both XMLHttpRequest and fetch, why not both?

  • Same API as fetch
  • Similar response as fetch
  • Emulates three of fetch's stremable types json, text, blob
  • Handles the body stream similarly, will throw an error if consumed twice and bodyUsed is handled
  • Many of the response's header methods are emulated
  • Clonable response
  • 2kb before GZIP
  • Comes with a polyfill
  • Really need to publish this to npm...

Releases

No releases published

Packages

No packages published