JSPM

request-function

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1642
  • Score
    100M100P100Q121611F
  • License MIT

Node.js module to get the corresponding http/https request function based on url

Package Exports

  • request-function

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (request-function) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

request-function

npm version Build Status codecov bitHound Overall Score

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: