express.js
This file
Path
lib/express.js
70 lines · 1.1 KiB · JavaScript
Last changed by
Merge branch 'features/https'Tj Holowaychukbefore adoption8261437
History of this fileTake 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–39why, one step back2526/**27 * Framework version.28 */2930exports.version = '2.0.0-pre';3132/**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/**Merge branch 'features/https'Tj Holowaychukbefore adoption8261437
line 49why, one step back49 * Expose `HTTPServer`.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;moved files from lib/express/* to lib/Tj Holowaychukbefore adoption3d597a5
lines 53–70why, one step back5354/**55 * View extensions.56 */5758require('./view');5960/**61 * Response extensions.62 */6364require('./response');6566/**67 * Request extensions.68 */6970require('./request');