'use strict';// We define these manually to ensure they're always copied// even if they would move up the prototype chain// https://nodejs.org/api/http.html#http_class_http_incomingmessageconstknownProps=['destroy','setTimeout','socket','headers','trailers','rawHeaders','statusCode','httpVersion','httpVersionMinor','httpVersionMajor','rawTrailers','statusMessage'];module.exports=(fromStream,toStream)=>{constfromProps=newSet(Object.keys(fromStream).concat(knownProps));for(constpropoffromProps){// Don't overwrite existing propertiesif(propintoStream){continue;}toStream[prop]=typeoffromStream[prop]==='function'?fromStream[prop].bind(fromStream):fromStream[prop];}};