0.1.1 • Published 11 years ago

http-get-shim v0.1.1

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

HTTP(S)-GET shim

Request-like module for HTTP(S) gets. Only contains the bare minimum for gets.

The requested url can be a string or an option, as the node http core api goes, the only added option is the maximum number of redirects the request can make, which you can add to the options-object as the property maxRedirects and a Number as the value (defaults to 5).

Automatically selects http or https based on the requested url, or the options object.

Usage

Install: npm install http-get-shim

Require: `var httpGet = require('http-get-shim');

Example:

httpGet('http://google.com', function (err, response, data) {
    if (!err && response.statusCode === 200) {
        console.log(data);
    } else {
        console.log(error);
    }
});

License

MIT: http://ok.mit-license.org

0.1.1

11 years ago

0.1.0

11 years ago

0.0.1

11 years ago