Sha256: 6e7d38fc78bf15aac05281a268fd97838f7c51a134eb615be645575fda774865
Contents?: true
Size: 432 Bytes
Versions: 17
Compression:
Stored size: 432 Bytes
Contents
var connect = require('../') , http = require('http'); // try: // - viewing in a browser // - curl http://localhost:3000 // - curl -H "Accept: application/json" http://localhost:3000 var app = connect() .use(function(req, res, next){ var err = new Error('oh noes!'); err.number = 7; throw err; }) .use(connect.errorHandler()); http.Server(app).listen(3000); console.log('Server started on port 3000');
Version data entries
17 entries across 17 versions & 2 rubygems