https.js
This file
Path
lib/https.js
52 lines · 903 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 0477a53 point at it.
misc refactorTj Holowaychukbefore adoption0477a53
lines 1–52why, 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 * Expose `HTTPSServer`.18 */1920exports = module.exports = HTTPSServer;2122/**23 * Server proto.24 */2526var app = HTTPSServer.prototype;2728/**29 * Initialize a new `HTTPSServer` with the 30 * given `options`, and optional `middleware`.31 *32 * @param {Object} options33 * @param {Array} middleware34 * @api public35 */3637function HTTPSServer(options, middleware){38 connect.HTTPSServer.call(this, options, []);39 this.init(middleware);40};4142/**43 * Inherit from `connect.HTTPSServer`.44 */4546app.__proto__ = connect.HTTPSServer.prototype;4748// mixin HTTPServer methods4950Object.keys(HTTPServer.prototype).forEach(function(method){51 app[method] = HTTPServer.prototype[method];52});