Skip to content
Myr

Private

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

authored by visionmedia · committed by visionmedia · parent 5bc8a3c · Browse files · 1 file+5 added−5 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+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:lib/express.core.js+5 added-5 removed
267 unmodified lines
268 *269 * @param {hash} route270 * @param {hash} request271 * @return {bool}272 * @api public272 * @api private273 */274 275 routeMethod : function(route, request) {276 return route.method.toUpperCase() == request.method
5 unmodified lines
282 *283 * @param {hash} route284 * @param {hash} request285 * @return {bool}286 * @api public286 * @api private287 */288 289 routeProvides : function(route, request) {290 if (!route.options.provides) return true
11 unmodified lines
302 * returned by the route callback.303 *304 * @param {object} request305 * @return {mixed}306 * @api public306 * @api private307 */308 309 callRouteFor : function(request) {310 var route = this.findRouteFor(request) || this.defaultRoute
7 unmodified lines
318 * Attemp to find and return a route matching _request_.319 *320 * @param {object} request321 * @return {object}322 * @api public322 * @api private323 */324 325 findRouteFor : function(request) {326 for (i = 0, len = this.routes.length; i < len; ++i)
6 unmodified lines
333 *334 * @param {object} route335 * @param {object} request336 * @return {bool}337 * @api public337 * @api private338 */339 340 routeMatches : function(route, request) {341 // var conditions = [Express.routeMethod]
70 unmodified lines