forecast.io icon indicating copy to clipboard operation
forecast.io copied to clipboard

Add support for gzip compression when making HTTP requests

Open mbmccormick opened this issue 7 years ago • 0 comments

The Forecast Data API supports HTTP compression. The Dark Sky team recommend using it, as it will make responses much smaller over the wire. To enable it, we simply need to add an Accept-Encoding: gzip header to all requests. The request library supports this through the gzip:true option.

https://darksky.net/dev/docs/response

https://www.npmjs.com/package/request

mbmccormick avatar Jun 06 '17 23:06 mbmccormick