Sha256: 57c72c8036720c4f9953303ad2364b01101627ddbb1a1b68a48376070f1797c1
Contents?: true
Size: 1.3 KB
Versions: 10
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.5.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
10 entries across 10 versions & 1 rubygems