We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d1a064 commit db3a7e8Copy full SHA for db3a7e8
2 files changed
lib/_http_outgoing.js
@@ -413,6 +413,9 @@ OutgoingMessage.prototype._renderHeaders = function() {
413
return headers;
414
};
415
416
+OutgoingMessage.prototype._implicitHeader = function() {
417
+ throw new Error('_implicitHeader() method is not implemented');
418
+};
419
420
Object.defineProperty(OutgoingMessage.prototype, 'headersSent', {
421
configurable: true,
test/parallel/test-http-outgoing-proto.js
@@ -0,0 +1,14 @@
1
+'use strict';
2
+require('../common');
3
+const assert = require('assert');
4
+
5
+const http = require('http');
6
+const OutgoingMessage = http.OutgoingMessage;
7
+const ClientRequest = http.ClientRequest;
8
+const ServerResponse = http.ServerResponse;
9
10
+assert.throws(OutgoingMessage.prototype._implicitHeader);
11
+assert.strictEqual(
12
+ typeof ClientRequest.prototype._implicitHeader, 'function');
13
14
+ typeof ServerResponse.prototype._implicitHeader, 'function');
0 commit comments