async.js
This file
Path
examples/async.js
12 lines · 360 bytes · JavaScript
Last changed by
added logger to async examplecsausdevbefore adoption5734bd5
History of this fileTake it
12345678910111213require.paths.unshift("./lib")require('express')
use(Express.Logger)
get('hello/:value/:time', function() { setTimeout(function() { Express.server.finished('<html><head><title>Asynchronous Example</title></head><body><h1>Hello '+param('value')+', I waited '+param('time')+'ms to talk to you.</h1></body></html>') }, param('time'))});
Express.start();