Skip to content
Myr

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 file

Take 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 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.0Tj Holowaychukbefore adoptionbf596dc

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

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/**

Fixed; expose HTTPSServer constructorTj Holowaychukbefore adoption07c9cae

line 49why, one step back
49 * Expose constructors.

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;

Fixed; expose HTTPSServer constructorTj Holowaychukbefore adoption07c9cae

line 53why, one step back
53exports.HTTPSServer = HTTPSServer;

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

lines 54–71why, one step back
54
55/**56 * View extensions.57 */5859require('./view');6061/**62 * Response extensions.63 */6465require('./response');6667/**68 * Request extensions.69 */7071require('./request');