@razee/request-util v1.0.10
request-util
This module is used to make https requests with arguments supported by the request library
(or request-promise-native) but without actually using the request library as it is deprecated.
Instead, the expected arguments are converted and used with axios, e.g.:
baseUrl-->baseURLuri-->urlqs-->params- etc (see
src/request.jsfor full details) awsaws.key and aws.secret -> aws4.sign generated headers
Similarly, the response is modified to include attributes expected on a request response, e.g.:
data-->bodystatus-->statusCode- etc (see
src/request.jsfor full details)
The behavior can be compared directly to request behavior by uncommenting the lines prefixed
with //COMPARE and creating a USE_LEGACY_REQUEST_LIBRARY file in the base directory.
The fs-extra, request, and request-promise-native libraries will also need to be installed
as they are not included in package.json.
If this is done, request will be used instead of axios, allowing comparison.
10 months ago
11 months ago
12 months ago
10 months ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago