HttpClient, StringClient, and JsonClient extracted from restify
Breaking Changes:
Changed behavior of restify-clients
when receiving a headers object with User-Agent
set:
restify-clients
would always override the User-Agent
header (either with restify/...
UA or with UA given via . To preserve the User-Agent
header, opts.userAgent
needed to be set to false
.restify-clients
will preserve User-Agent
unless another userAgent is explicitly given via opts.userAgent
. To use the restify/...
User-Anget
, headers should not contain a User-Agent
header.Dropped support for EOL Node.js versions v6.x and v8.x
Audit logging has been added for clients.
You can now enable audit logging for client requests. If you pass audit: true
to any client as part of the configuration, you will get an audit report logged to Bunyan after the request completes.
Thank you to @marcellodesales for his hard work.