Sha256: c583bbfa560c8d38693536b4388e60f6d1b6c19a9d1f3fc7509c14161c4cdec9

Contents?: true

Size: 903 Bytes

Versions: 28

Compression:

Stored size: 903 Bytes

Contents

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

/**
 * Module dependencies.
 */

var connect = require('connect')
  , HTTPServer = require('./http')
  , https = require('https');

/**
 * Expose `HTTPSServer`.
 */

exports = module.exports = HTTPSServer;

/**
 * Server proto.
 */

var app = HTTPSServer.prototype;

/**
 * Initialize a new `HTTPSServer` with the 
 * given `options`, and optional `middleware`.
 *
 * @param {Object} options
 * @param {Array} middleware
 * @api public
 */

function HTTPSServer(options, middleware){
  connect.HTTPSServer.call(this, options, []);
  this.init(middleware);
};

/**
 * Inherit from `connect.HTTPSServer`.
 */

app.__proto__ = connect.HTTPSServer.prototype;

// mixin HTTPServer methods

Object.keys(HTTPServer.prototype).forEach(function(method){
  app[method] = HTTPServer.prototype[method];
});

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
blackboard-3.1.9 lib/site_template/node_modules/express/lib/https.js
vulcan-0.8.2 server/node_modules/express/lib/https.js
vulcan-0.8.1 server/node_modules/express/lib/https.js
vulcan-0.8.0 server/node_modules/express/lib/https.js
vulcan-0.7.2 server/node_modules/express/lib/https.js
vulcan-0.7.1 server/node_modules/express/lib/https.js
vulcan-0.7.0 server/node_modules/express/lib/https.js
vulcan-0.6.1 server/node_modules/express/lib/https.js
vulcan-0.6.0 server/node_modules/express/lib/https.js
vulcan-0.5.0 server/node_modules/express/lib/https.js
vulcan-0.4.0 server/node_modules/express/lib/https.js
vulcan-0.3.0 server/node_modules/express/lib/https.js
vulcan-0.2.5 server/node_modules/express/lib/https.js
vulcan-0.2.4 server/node_modules/express/lib/https.js
vulcan-0.2.3 server/node_modules/express/lib/https.js
vulcan-0.2.2 server/node_modules/express/lib/https.js
vulcan-0.2.1 server/node_modules/express/lib/https.js
vulcan-0.2.0 server/node_modules/express/lib/https.js
vulcan-0.1.6 server/node_modules/express/lib/https.js
vulcan-0.1.5 server/node_modules/express/lib/https.js