https.js
This file
Path
lib/https.js
52 lines · 903 bytes · JavaScript
Last changed by
Merge branch 'refactor/router'Tj Holowaychukbefore adoption351f6ab
History of this fileTake it
The walk stopped after 200 commits: lines older than 3d242a6 point at it.
Fixed caching of views when using several apps. Closes #637Tj Holowaychukbefore adoption3d242a6
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/**Merge branch 'refactor/router'Tj Holowaychukbefore adoption351f6ab
lines 17–28why, one step back17 * Expose `HTTPSServer`.18 */1920exports = module.exports = HTTPSServer;2122/**23 * Server proto.24 */2526var app = HTTPSServer.prototype;2728/**Fixed caching of views when using several apps. Closes #637Tj Holowaychukbefore adoption3d242a6
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 */36Merge branch 'refactor/router'Tj Holowaychukbefore adoption351f6ab
line 37why, one step back37function HTTPSServer(options, middleware){Fixed caching of views when using several apps. Closes #637Tj Holowaychukbefore adoption3d242a6
lines 38–45why, one step back38 connect.HTTPSServer.call(this, options, []);39 this.init(middleware);40};4142/**43 * Inherit from `connect.HTTPSServer`.44 */45Merge branch 'refactor/router'Tj Holowaychukbefore adoption351f6ab
line 46why, one step back46app.__proto__ = connect.HTTPSServer.prototype;Fixed caching of views when using several apps. Closes #637Tj Holowaychukbefore adoption3d242a6
lines 47–50why, one step back4748// mixin HTTPServer methods4950Object.keys(HTTPServer.prototype).forEach(function(method){Merge branch 'refactor/router'Tj Holowaychukbefore adoption351f6ab
line 51why, one step back51 app[method] = HTTPServer.prototype[method];Fixed caching of views when using several apps. Closes #637Tj Holowaychukbefore adoption3d242a6
line 52why, one step back52});