summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-outgoing-internal-headernames-getter.js
blob: c8bd1f13d5c6e5536d66bdce02f9126c1765e0c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';
const common = require('../common');

const { OutgoingMessage } = require('http');

const warn = 'OutgoingMessage.prototype._headerNames is deprecated';
common.expectWarning('DeprecationWarning', warn, 'DEP0066');

{
  // tests for _headerNames get method
  const outgoingMessage = new OutgoingMessage();
  outgoingMessage._headerNames;
}