🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

rod

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rod

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

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

http

FAQs

Package last updated on 18 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts