0.0.5 • Published 12 years ago

buffered-response v0.0.5

Weekly downloads
3
License
-
Repository
github
Last release
12 years ago

Buffered Response Reader for Node.js

A small utility class to wrap response objects from the http module, and provide line-by-line iteration.

SYNOPSIS

    var http = require('http');
    var BufferedResponse = require('buffered-response').BufferedResponse;

    var options = {
        host: 'foo',
        path: '/a/b?q=3',
        method: 'GET'
    };

    var req = http.request(options, function(resp) {
        var reader = new BufferedResponse(resp);
        reader.setEncoding('utf8');
        var lineno = 1;
        reader.on('line', function(line) {
            console.log("LINE " + lineno++ + ": " + line);
        });
    });

    req.end();
0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago

0.0.1beta-1

12 years ago

0.0.1alpha-1

13 years ago

0.0.1alpha

13 years ago