summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-outgoing-internal-headernames-getter.js
blob: c3caffff1f8a42c0a3eb75ebcce71a764d31adbf (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;
}