Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit d4b1194

Browse files
committed
Add request count function to test server
1 parent e2a5bf4 commit d4b1194

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test-server/server.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ app.listen(8123, function(err){
4040
console.log('test server running at port ',8123)
4141
})
4242

43+
var count = 0
4344

4445
app.use(function(req,res,next){
45-
console.log(chalk.green('request url=') + chalk.magenta(req.url))
46+
console.log(chalk.green('request url=') + chalk.magenta(req.url), ++count)
4647
next()
4748
})
4849

0 commit comments

Comments
 (0)