Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rod

0x413945MIT Copyright Vali Malinoiu1.0.1

rod is a simple http transfer agent that supports https/gzip/deflate and follows redirects, it also can run in a fiber.

http, get, post, simple, get, simple, request, stream, http-https, https, deflate, gzip, follow, redirects, redirects, http.get, get, request, GET, http, request

readme

rod

features

This module is designed to be the lightest possible wrapper on top of node.js http, but supporting:

  • follows redirects
  • automatically handles gzip/deflate responses
  • supports HTTPS

install

npm install rod

usage

simple GET request

'use strict';
var rod = require('./../index');

rod('http://0x4139.com', function (err, res) {
    if (err) {
        throw err
    }
    console.log(res.statusCode);
    res.pipe(process.stdout);
});

license

MIT. Copyright @ Vali Malinoiu