Sha256: 40e0b36eea1ca05199f80797ca02c0fef69503c8e444a09d853ddab609279d91

Contents?: true

Size: 1.3 KB

Versions: 7

Compression:

Stored size: 1.3 KB

Contents

/*!
 * Express
 * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
 * MIT Licensed
 */

/**
 * Module dependencies.
 */

var connect = require('connect')
  , HTTPSServer = require('./https')
  , HTTPServer = require('./http')
  , Route = require('./router/route')

/**
 * Re-export connect auto-loaders.
 * 
 * This prevents the need to `require('connect')` in order
 * to access core middleware, so for example `express.logger()` instead
 * of `require('connect').logger()`.
 */

var exports = module.exports = connect.middleware;

/**
 * Framework version.
 */

exports.version = '2.4.6';

/**
 * Shortcut for `new Server(...)`.
 *
 * @param {Function} ...
 * @return {Server}
 * @api public
 */

exports.createServer = function(options){
  if ('object' == typeof options) {
    return new HTTPSServer(options, Array.prototype.slice.call(arguments, 1));
  } else {
    return new HTTPServer(Array.prototype.slice.call(arguments));
  }
};

/**
 * Expose constructors.
 */

exports.HTTPServer = HTTPServer;
exports.HTTPSServer = HTTPSServer;
exports.Route = Route;

/**
 * View extensions.
 */

exports.View =
exports.view = require('./view');

/**
 * Response extensions.
 */

require('./response');

/**
 * Request extensions.
 */

require('./request');

// Error handler title

exports.errorHandler.title = 'Express';

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vulcan-0.3.0 server/node_modules/express/lib/express.js
vulcan-0.1.3 server/node_modules/express/lib/express.js
vulcan-0.1.2 server/node_modules/express/lib/express.js
vulcan-0.1.1 server/node_modules/express/lib/express.js
vulcan-0.1.0 server/node_modules/express/lib/express.js
vulcan-0.0.3 server/node_modules/express/lib/express.js
vulcan-0.0.2 server/node_modules/express/lib/express.js