Skip to content
Myr

https.js

This file

Path

lib/https.js

40 lines · 834 bytes · JavaScript

Last changed by

Merge branch 'features/https'Tj Holowaychukbefore adoption8261437

History of this file

Take it

Merge branch 'features/https'Tj Holowaychukbefore adoption8261437

lines 1–40why, one step back
1
2/*!3 * Express - HTTPSServer4 * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>5 * MIT Licensed6 */78/**9 * Module dependencies.10 */1112var connect = require('connect')13 , HTTPServer = require('./http')14 , https = require('https');1516/**17 * Initialize a new `HTTPSServer` with the 18 * given `options`, and optional `middleware`.19 *20 * @param {Object} options21 * @param {Array} middleware22 * @api public23 */2425var Server = exports = module.exports = function HTTPSServer(options, middleware){26 connect.HTTPSServer.call(this, options, []);27 this.init(middleware);28};2930/**31 * Inherit from `connect.HTTPSServer`.32 */3334Server.prototype.__proto__ = connect.HTTPSServer.prototype;3536// mixin HTTPServer methods3738Object.keys(HTTPServer.prototype).forEach(function(method){39 Server.prototype[method] = HTTPServer.prototype[method];40});