closure-fetch

A Closure Compiler compatible fetch implementation (does not support the full fetch API)


License
BSD-3-Clause
Install
npm install closure-fetch@0.4.2

Documentation

Closure Fetch

A minimal fetch implementation that supports sending ArrayBuffer and plain strings. Retrieval only supports array buffers as response.

fetch('/myfile.zip').then(function (response) {
  response.arrayBuffer().then(function (buffer) {
  });
});