]> git.cworth.org Git - obsolete/notmuch-web/blob - node_modules/express/lib/https.js
Install the "express" node module via npm
[obsolete/notmuch-web] / node_modules / express / lib / https.js
1
2 /*!
3  * Express - HTTPSServer
4  * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
5  * MIT Licensed
6  */
7
8 /**
9  * Module dependencies.
10  */
11
12 var connect = require('connect')
13   , HTTPServer = require('./http')
14   , https = require('https');
15
16 /**
17  * Expose `HTTPSServer`.
18  */
19
20 exports = module.exports = HTTPSServer;
21
22 /**
23  * Server proto.
24  */
25
26 var app = HTTPSServer.prototype;
27
28 /**
29  * Initialize a new `HTTPSServer` with the 
30  * given `options`, and optional `middleware`.
31  *
32  * @param {Object} options
33  * @param {Array} middleware
34  * @api public
35  */
36
37 function HTTPSServer(options, middleware){
38   connect.HTTPSServer.call(this, options, []);
39   this.init(middleware);
40 };
41
42 /**
43  * Inherit from `connect.HTTPSServer`.
44  */
45
46 app.__proto__ = connect.HTTPSServer.prototype;
47
48 // mixin HTTPServer methods
49
50 Object.keys(HTTPServer.prototype).forEach(function(method){
51   app[method] = HTTPServer.prototype[method];
52 });