Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 4c274c5 point at it.

Added res.cookie() maxAge supportTj Holowaychukbefore adoption4c274c5

lines 1–16why, 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/**

Merge branch 'refactor/router'Tj Holowaychukbefore adoption351f6ab

lines 17–28why, one step back
17 * Expose `HTTPSServer`.
18 */1920exports = module.exports = HTTPSServer;2122/**23 * Server proto.24 */2526var app = HTTPSServer.prototype;2728/**

Added res.cookie() maxAge supportTj Holowaychukbefore adoption4c274c5

lines 29–36why, one step back
29 * Initialize a new `HTTPSServer` with the
30 * given `options`, and optional `middleware`.31 *32 * @param {Object} options33 * @param {Array} middleware34 * @api public35 */36

Merge branch 'refactor/router'Tj Holowaychukbefore adoption351f6ab

line 37why, one step back
37function HTTPSServer(options, middleware){

Added res.cookie() maxAge supportTj Holowaychukbefore adoption4c274c5

lines 38–45why, one step back
38 connect.HTTPSServer.call(this, options, []);
39 this.init(middleware);40};4142/**43 * Inherit from `connect.HTTPSServer`.44 */45

Merge branch 'refactor/router'Tj Holowaychukbefore adoption351f6ab

line 46why, one step back
46app.__proto__ = connect.HTTPSServer.prototype;

Added res.cookie() maxAge supportTj Holowaychukbefore adoption4c274c5

lines 47–50why, one step back
47
48// mixin HTTPServer methods4950Object.keys(HTTPServer.prototype).forEach(function(method){

Merge branch 'refactor/router'Tj Holowaychukbefore adoption351f6ab

line 51why, one step back
51 app[method] = HTTPServer.prototype[method];

Added res.cookie() maxAge supportTj Holowaychukbefore adoption4c274c5

line 52why, one step back
52});