You can't get the body of the response from the return value of http.get()
.
http.get()
doesn't return a response object. It returns the request object (http.clientRequest
). So, there isn't any way to get the body of the response from the return value of http.get()
.
I know it's an old question, but reading the documentation you linked to shows that this was the case even when you posted it.