https.js
This file
Path
lib/https.js
40 lines · 834 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 29eed65 point at it.
removed constants from express(1)Tj Holowaychukbefore adoption29eed65
lines 1–40why, one step back12/*!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});