express.js
This file
Path
lib/express.js
71 lines · 1.1 KiB · JavaScript
Last changed by
Release 2.0.0Tj Holowaychukbefore adoptionbf596dc
History of this fileTake it
The walk stopped after 200 commits: lines older than 3d597a5 point at it.
moved files from lib/express/* to lib/Tj Holowaychukbefore adoption3d597a5
lines 1–8why, one step back12/*!3 * Express4 * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>5 * MIT Licensed6 */78/**prepping for connect 1.0Tj Holowaychukbefore adoptionbdbacb4
lines 9–12why, one step back9 * Module dependencies.10 */1112var connect = require('connect')Merge branch 'features/https'Tj Holowaychukbefore adoption8261437
lines 13–14why, one step back13 , HTTPSServer = require('./https')14 , HTTPServer = require('./http');prepping for connect 1.0Tj Holowaychukbefore adoptionbdbacb4
lines 15–16why, one step back1516/**moved files from lib/express/* to lib/Tj Holowaychukbefore adoption3d597a5
lines 17–23why, one step back17 * Re-export connect auto-loaders.18 * 19 * This prevents the need to `require('connect')` in order20 * to access core middleware, so for example `express.logger()` instead21 * of `require('connect').logger()`.22 */23prepping for connect 1.0Tj Holowaychukbefore adoptionbdbacb4
line 24why, one step back24var exports = module.exports = connect.middleware;moved files from lib/express/* to lib/Tj Holowaychukbefore adoption3d597a5
lines 25–29why, one step back2526/**27 * Framework version.28 */29Release 2.0.0Tj Holowaychukbefore adoptionbf596dc
line 30why, one step back30exports.version = '2.0.0';moved files from lib/express/* to lib/Tj Holowaychukbefore adoption3d597a5
lines 31–39why, one step back3132/**33 * Shortcut for `new Server(...)`.34 *35 * @param {Function} ...36 * @return {Server}37 * @api public38 */39Merge branch 'features/https'Tj Holowaychukbefore adoption8261437
lines 40–45why, one step back40exports.createServer = function(options){41 if ('object' == typeof options) {42 return new HTTPSServer(options, Array.prototype.slice.call(arguments, 1));43 } else {44 return new HTTPServer(Array.prototype.slice.call(arguments));45 }moved files from lib/express/* to lib/Tj Holowaychukbefore adoption3d597a5
line 46why, one step back46};prepping for connect 1.0Tj Holowaychukbefore adoptionbdbacb4
lines 47–48why, one step back4748/**Fixed; expose HTTPSServer constructorTj Holowaychukbefore adoption07c9cae
line 49why, one step back49 * Expose constructors.prepping for connect 1.0Tj Holowaychukbefore adoptionbdbacb4
lines 50–51why, one step back50 */51Merge branch 'features/https'Tj Holowaychukbefore adoption8261437
line 52why, one step back52exports.HTTPServer = HTTPServer;Fixed; expose HTTPSServer constructorTj Holowaychukbefore adoption07c9cae
line 53why, one step back53exports.HTTPSServer = HTTPSServer;moved files from lib/express/* to lib/Tj Holowaychukbefore adoption3d597a5
lines 54–71why, one step back5455/**56 * View extensions.57 */5859require('./view');6061/**62 * Response extensions.63 */6465require('./response');6667/**68 * Request extensions.69 */7071require('./request');