Skip to content
Myr

gst

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

authored by visionmedia · committed by visionmedia · parent 9463674 · Browse files · 3 files+7 added−8 removed
This commit

State

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

Diff stats

3 files+7 added−8 removed

  • tests:+1 added−1 removed
  • other:+6 added−7 removed

3 files+7 added−8 removed

modified:examples/async.js+1 added-1 removed
modified:lib/express.core.js+5 added-6 removed
254 unmodified lines
255 request.uri.path = Express.normalizePath(request.uri.path)256 Express.hook('onRequest')257 try { Express.response.body = Express.callRouteFor(request) }258 catch (e) { Express.fail(e) }259 if (Express.response.body) {259 if (typeof Express.response.body == 'string')260 Express.server.finished()261 }261 })262 },263 264 finished: function(body) {
86 unmodified lines
351 return this.request.uri.path.split('/')[n]352 },353 354 /**356 * Set response _status_ and _body_.355 * Set response _status_ and _body_. Status356 * defaults to 200.357 *358 * @param {string} body359 * @param {string, int} status360 * @api public361 */362 363 halt : function(body, status) {364 this.response.body = body365 this.status(status)366 throw new Express.Halt()364 this.status(status || 200)365 Express.server.finished(this.response.body = body)366 },367 368 /**369 * Get or set response _name_ header.
325 unmodified lines
modified:spec/spec.async.js+1 added-1 removed