No Princess, Mario

    rainbowsocks-http

    0.0.0 • Public • Published

    rainbowsocks-http

    Similar to node.js's http interface tunneling though a SOCKS4a proxy

    Install

    npm install rainbowsocks-http

    API

    var http = require('rainbowsocks-http')(socksPort [, socksHost || '127.0.0.1']);

    http.request is the only method available currently with very basic options support.

    Example

    // var http = require('rainbowsocks-http')(socksPort [, socksHost || '127.0.0.1']);
    var http = require('./')(9050);
     
    var req = http.request('http://github.com', function(res) {
      console.log('statusCode: ', res.statusCode);
      console.log('headers: ', res.headers);
      res.on('data', function(data) {
        console.log(data);
      });
    });
     
    req.on('error', function(err) {
      console.log('oh no: ', err);
    });

    Licence

    MIT

    Keywords

    none

    Install

    npm i rainbowsocks-http

    DownloadsWeekly Downloads

    1

    Version

    0.0.0

    License

    MIT

    Last publish

    Collaborators

    • bencevans