1'use strict'; 2const common = require('../common'); 3 4const { OutgoingMessage } = require('http'); 5 6const warn = 'OutgoingMessage.prototype._headerNames is deprecated'; 7common.expectWarning('DeprecationWarning', warn, 'DEP0066'); 8 9{ 10 // Tests for _headerNames set method 11 const outgoingMessage = new OutgoingMessage(); 12 outgoingMessage._headerNames = { 13 'x-flow-id': '61bba6c5-28a3-4eab-9241-2ecaa6b6a1fd' 14 }; 15} 16