request-function
v2.0.0
Published
Node.js module to get the corresponding http/https request function based on url
Downloads
3,304
Readme
request-function
This Node.js module contains a simple helper function for retrieving the corresponding http/https request function for a url.
var httpRequest = requestFunction('http://www.google.com');
var httpsRequest = requestFunction('https://www.google.com');
The Node.js http / https request functions are described here:
- https://nodejs.org/api/http.html#http_http_request_options_callback
- https://nodejs.org/api/https.html#https_https_request_options_callback