Tags: mrsarm/reqclient
Tags
2.4.0 ----- * Added `forever` option to setup the `forever-agent` (to keep connections alive). * Added `gzip` option to optimize network usage and speed up requests. * Added `followRedirect`, `followAllRedirects` and `maxRedirects` options to follow HTTP 3xx responses as redirects * Added `requestOptions` option, that allows to pass options to `request` module that are not covered by reqclient's options, like `cert`, `key`, `proxy`, `pool`, etc. * Improved the doc, added `async` / `await` examples. * Updated dependencies (it's not necessary to update dependencies in projects with oldest versions).
reqclient 2.0.0
===============
* Added HTTP Authentication support.
* Added OAuth2 Authentication support.
* Added full URL parameter support on each call.
* If `debugResponse` is activated and a response has
HTTP Status >= 400 it will log with `error` severity.
* Added an optional parameter `options` to all public method
to override the default options.
* `_prepareOptions()` method now builds the request options in
async mode returning a `Promise`, useful to add options obtained
from external resources without blocking the execution, like an
access token from an OAuth server.
* The new `options` parameter replace the `cacheTtl` parameter
in the `get()` method. Now this parameter is a optional property
inside the `options` parameter (eg. `{cacheTtl: 60, ...}`).
PreviousNext