Sha256: 3b44aaf8bf66280ff3980cbd0a0f30ac93900dace3bb221203ecb335f0cce649

Contents?: true

Size: 387 Bytes

Versions: 26

Compression:

Stored size: 387 Bytes

Contents

/**
 * Module dependencies.
 */

var connect = require('../../lib/connect'),
    Buffer = require('buffer').Buffer,
    body = new Buffer('Hello World', 'ascii');


connect.createServer(
    function(req, res, next){
        res.writeHead(200, {
            'Content-Type': 'text/plain',
            'Content-Length': body.length
        });
        res.end(body);
    }
).listen(3000);

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
vulcan-0.1.3 server/node_modules/connect-form/support/connect/benchmarks/hello-world/connect.js
vulcan-0.1.2 server/node_modules/connect-form/support/connect/benchmarks/hello-world/connect.js
vulcan-0.1.1 server/node_modules/connect-form/support/connect/benchmarks/hello-world/connect.js
vulcan-0.1.0 server/node_modules/connect-form/support/connect/benchmarks/hello-world/connect.js
vulcan-0.0.3 server/node_modules/connect-form/support/connect/benchmarks/hello-world/connect.js
vulcan-0.0.2 server/node_modules/connect-form/support/connect/benchmarks/hello-world/connect.js