The http module provides both server and client capabilities.
We use the http.request method to create a request stream, which takes an options object (opts) describing the request and a callback.
The http module provides both server and client capabilities.
We use the http.request method to create a request stream, which takes an options object (opts) describing the request and a callback.