Skip to content
Myr

Started Plugin

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

authored by visionmedia · committed by visionmedia · parent 7f1eeaf · Browse files · 5 files+78 added−2 removed
This commit

State

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

Diff stats

5 files+78 added−2 removed

  • tests:+32 added−0 removed
  • other:+46 added−2 removed

5 files+78 added−2 removed

modified:lib/express/spec/mock-routes.js+1 added
modified:lib/express/core.js+5 added-2 removed
2 unmodified lines
34process.mixin(require('sys'))5process.mixin(require('express/exceptions'))6process.mixin(require('express/helpers'))7process.mixin(require('express/plugin'))8process.mixin(require('express/mime'))9process.mixin(require('express/dsl'))1011// --- Helpers
239 unmodified lines
251 * @api private252 */253 254 respond: function(body){255 this.response.body = body, trigger('response')254 if (typeof body != 'string') throw new InvalidResponseBody(this.request)256 if (typeof this.response.body != 'string') throw new InvalidResponseBody(this.request)257 if (typeof this.response.status != 'number') throw new InvalidStatusCode(this.response.status)258 this.response.sendHeader(this.response.status, this.response.headers)257 this.response.sendBody(body)259 this.response.sendBody(this.response.body)260 this.response.finish()261 }262})263
2 unmodified lines
266Express = { 267 version: '0.0.1',268 config: [],269 routes: [],270 plugins: [],271 settings: {},272 server: new Server,273 router: new Router274}
added:lib/express/plugin.js+41 added
modified:spec/spec.node.js+1 added
25 unmodified lines
26 .exec('spec/spec.routing.js')27 .exec('spec/spec.helpers.js')28 .exec('spec/spec.mime.js')29 .exec('spec/spec.collection.js')30 .exec('spec/spec.plugins.js')31JSpec.run({ formatter: JSpec.formatters.Terminal, failuresOnly: true })32JSpec.report()
added:spec/spec.plugins.js+30 added