Skip to content
Myr

express.js

This file

Path

lib/express.js

70 lines · 1.1 KiB · JavaScript

Last changed by

Release 2.0.0beta2Tj Holowaychukbefore adoptiond4f4b66

History of this file

Take it

moved files from lib/express/* to lib/Tj Holowaychukbefore adoption3d597a5

lines 1–8why, one step back
1
2/*!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 back
9 * Module dependencies.
10 */1112var connect = require('connect')

Merge branch 'features/https'Tj Holowaychukbefore adoption8261437

lines 13–14why, one step back
13 , HTTPSServer = require('./https')
14 , HTTPServer = require('./http');

prepping for connect 1.0Tj Holowaychukbefore adoptionbdbacb4

lines 15–16why, one step back
15
16/**

moved files from lib/express/* to lib/Tj Holowaychukbefore adoption3d597a5

lines 17–23why, one step back
17 * 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 */23

prepping for connect 1.0Tj Holowaychukbefore adoptionbdbacb4

line 24why, one step back
24var exports = module.exports = connect.middleware;

moved files from lib/express/* to lib/Tj Holowaychukbefore adoption3d597a5

lines 25–29why, one step back
25
26/**27 * Framework version.28 */29

Release 2.0.0beta2Tj Holowaychukbefore adoptiond4f4b66

line 30why, one step back
30exports.version = '2.0.0beta2';

moved files from lib/express/* to lib/Tj Holowaychukbefore adoption3d597a5

lines 31–39why, one step back
31
32/**33 * Shortcut for `new Server(...)`.34 *35 * @param {Function} ...36 * @return {Server}37 * @api public38 */39

Merge branch 'features/https'Tj Holowaychukbefore adoption8261437

lines 40–45why, one step back
40exports.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 back
46};

prepping for connect 1.0Tj Holowaychukbefore adoptionbdbacb4

lines 47–48why, one step back
47
48/**

Merge branch 'features/https'Tj Holowaychukbefore adoption8261437

line 49why, one step back
49 * Expose `HTTPServer`.

prepping for connect 1.0Tj Holowaychukbefore adoptionbdbacb4

lines 50–51why, one step back
50 */
51

Merge branch 'features/https'Tj Holowaychukbefore adoption8261437

line 52why, one step back
52exports.HTTPServer = HTTPServer;

moved files from lib/express/* to lib/Tj Holowaychukbefore adoption3d597a5

lines 53–70why, one step back
53
54/**55 * View extensions.56 */5758require('./view');5960/**61 * Response extensions.62 */6364require('./response');6566/**67 * Request extensions.68 */6970require('./request');