http_server.js (875:dae402cb243f) http_server.js (879:f74d4dd9c3db)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6'use strict';
7
8const EventEmitter = require('events');

--- 152 unchanged lines hidden (view full) ---

161
162 if (callback) {
163 this.on('timeout', callback);
164 }
165
166 return this;
167};
168
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6'use strict';
7
8const EventEmitter = require('events');

--- 152 unchanged lines hidden (view full) ---

161
162 if (callback) {
163 this.on('timeout', callback);
164 }
165
166 return this;
167};
168
169// for Express
170ServerResponse.prototype._implicitHeader = function _implicitHeader() {
171 this.writeHead(this.statusCode);
172};
173
174ServerResponse.prototype.writeHead = writeHead;
175ServerResponse.prototype.writeHeader = ServerResponse.prototype.writeHead;
176
177function writeHead(statusCode, reason, obj) {
178 var originalStatusCode = statusCode;
179
180 statusCode |= 0;
181

--- 231 unchanged lines hidden ---
169ServerResponse.prototype.writeHead = writeHead;
170ServerResponse.prototype.writeHeader = ServerResponse.prototype.writeHead;
171
172function writeHead(statusCode, reason, obj) {
173 var originalStatusCode = statusCode;
174
175 statusCode |= 0;
176

--- 231 unchanged lines hidden ---