11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ciconst { OutgoingMessage } = require('http'); 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciconst warn = 'OutgoingMessage.prototype._headerNames is deprecated'; 71cb0ef41Sopenharmony_cicommon.expectWarning('DeprecationWarning', warn, 'DEP0066'); 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ci{ 101cb0ef41Sopenharmony_ci // Tests for _headerNames set method 111cb0ef41Sopenharmony_ci const outgoingMessage = new OutgoingMessage(); 121cb0ef41Sopenharmony_ci outgoingMessage._headerNames = { 131cb0ef41Sopenharmony_ci 'x-flow-id': '61bba6c5-28a3-4eab-9241-2ecaa6b6a1fd' 141cb0ef41Sopenharmony_ci }; 151cb0ef41Sopenharmony_ci} 16