httpinvoke is a 4.6kb no-dependencies HTTP client library for browsers and Node.js with a promise-based or Node.js-style callback-based API to progress events, text and binary file upload and download, request and response headers, status code.
Gracefully upgrades to latest platform-specific features:
* cross-origin resource sharing - do cross-domain requests with confidence;
* progress events - get current and total bytes downloaded or uploaded;
* binary file uploads and downloads - easily use Blob, FormData, ArrayBuffer, Uint8Array or a simple array of bytes.
* Supports both NodeJS style callbacks and Promises/A+ (with progress events, see an example).
* Supports transparent gzip/deflate content decoding.
* Handles HTTP responses The Right Way™:
Your new post is loading...