3 * Express - HTTPSServer
4 * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
12 var connect = require('connect')
13 , HTTPServer = require('./http')
14 , https = require('https');
17 * Expose `HTTPSServer`.
20 exports = module.exports = HTTPSServer;
26 var app = HTTPSServer.prototype;
29 * Initialize a new `HTTPSServer` with the
30 * given `options`, and optional `middleware`.
32 * @param {Object} options
33 * @param {Array} middleware
37 function HTTPSServer(options, middleware){
38 connect.HTTPSServer.call(this, options, []);
39 this.init(middleware);
43 * Inherit from `connect.HTTPSServer`.
46 app.__proto__ = connect.HTTPSServer.prototype;
48 // mixin HTTPServer methods
50 Object.keys(HTTPServer.prototype).forEach(function(method){
51 app[method] = HTTPServer.prototype[method];