https.js
This file
Path
lib/https.js
52 lines · 903 bytes · JavaScript
Last changed by
refactored https.jsTj Holowaychukbefore adoption4efb25d
History of this fileTake it
The walk stopped after 200 commits: lines older than 2b907e9 point at it.
fixing testsTj Holowaychukbefore adoption2b907e9
lines 1–16why, 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/**refactored https.jsTj Holowaychukbefore adoption4efb25d
lines 17–28why, one step back17 * Expose `HTTPSServer`.18 */1920exports = module.exports = HTTPSServer;2122/**23 * Server proto.24 */2526var app = HTTPSServer.prototype;2728/**fixing testsTj Holowaychukbefore adoption2b907e9
lines 29–36why, one step back29 * Initialize a new `HTTPSServer` with the 30 * given `options`, and optional `middleware`.31 *32 * @param {Object} options33 * @param {Array} middleware34 * @api public35 */36refactored https.jsTj Holowaychukbefore adoption4efb25d
line 37why, one step back37function HTTPSServer(options, middleware){fixing testsTj Holowaychukbefore adoption2b907e9
lines 38–45why, one step back38 connect.HTTPSServer.call(this, options, []);39 this.init(middleware);40};4142/**43 * Inherit from `connect.HTTPSServer`.44 */45refactored https.jsTj Holowaychukbefore adoption4efb25d
line 46why, one step back46app.__proto__ = connect.HTTPSServer.prototype;fixing testsTj Holowaychukbefore adoption2b907e9
lines 47–50why, one step back4748// mixin HTTPServer methods4950Object.keys(HTTPServer.prototype).forEach(function(method){refactored https.jsTj Holowaychukbefore adoption4efb25d
line 51why, one step back51 app[method] = HTTPServer.prototype[method];fixing testsTj Holowaychukbefore adoption2b907e9
line 52why, one step back52});