Closed jpgcode closed 5 years ago
HI, check out https://github.com/request/request-promise#get-the-full-response-instead-of-just-the-body
Once I set "resolveWithFullResponse: true" in the options, I am able to see the response object, include response.elapsedTime.
I am trying this as well but it does not seem to show up for me...@jpgcode did it work for you?
Correct! As @davebachmann explains above, use the resolveWithFullResponse: true
option and you are good to go.
In main request docs https://github.com/request/request there is an option called "time" that in case is set to
true
is supposed to add additional details about the time of the transaction:time - if true, the request-response cycle (including all redirects) is timed at millisecond resolution. When set, the following properties are added to the response object ...
Adding the flag into my request options I do not get the information I need.
Here the code of my request: