Skip to content
Myr

Setting response / request hook

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent cfb3018 · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • tests:+3 added−3 removed
  • other:+1 added−1 removed

2 files+4 added−4 removed

modified:lib/express.core.js+1 added-1 removed
44 unmodified lines
45 46 start : function(port) {47 this.server.listen(port || 3000, function(request, response){48 Express.request = request49 Express.hook('request')49 Express.hook('request', request, response)50 request.headers = Express.arrayToHash(request.headers)51 request.cookie = Express.parseCookie(request.headers['Cookie'])52 request.uri.params = Express.parseNestedParams(request.uri.params)53 request.uri.path = Express.normalizePath(request.uri.path)
455 unmodified lines
modified:spec/spec.core.js+3 added-3 removed