Skip to content
Myr

Docs

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

authored by visionmedia · committed by visionmedia · parent 17fabc4 · Browse files · 1 file+14 added−7 removed
This commit

State

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

Diff stats

1 file+14 added−7 removed

  • other:+14 added−7 removed

1 file+14 added−7 removed

modified:lib/express.core.js+14 added-7 removed
103 unmodified lines
104 response.finish()105 })106 },107 108 fail : function(e) {109 if (e.constructor == Express.Break) return110 this.header('Content-Type', 'text/html')111 this.response.body = e.message ? e.name + ': ' + e.message : e.toString()112 this.response.status = 500113 },114 108 server : {109 110 /**111 * Listen to _port_ with _callback_.
8 unmodified lines
120 puts('Express listening to http://localhost:' + port)121 }122 },123 124 /**125 * Fail Express with exception _e_.126 *127 * @param {object} e128 * @api private129 */130131 fail : function(e) {132 if (e.constructor == Express.Break) return133 this.header('Content-Type', 'text/html')134 this.response.body = e.message ? e.name + ': ' + e.message : e.toString()135 this.response.status = 500136 },137 138 prepareCookie : function() {139 var cookie = []140 for (var key in this.response.cookie)141 if (this.response.cookie.hasOwnProperty(key))
462 unmodified lines