outgoingMessage.appendHeader(name, value)
name<string> 头部名称value<string> | <string[]> 头部值- 返回:<this>
将单个标头值附加到标头对象。
【Append a single header value to the header object.】
如果值是数组,这相当于多次调用此方法。
【If the value is an array, this is equivalent to calling this method multiple times.】
如果该头部没有以前的值,这等同于调用 outgoingMessage.setHeader(name, value)。
【If there were no previous values for the header, this is equivalent to calling
outgoingMessage.setHeader(name, value).】
根据 options.uniqueHeaders 的值,当客户端请求或服务器创建时,最终会导致该头部被发送多次,或者只发送一次且其值使用 ; 连接。
【Depending of the value of options.uniqueHeaders when the client request or the
server were created, this will end up in the header being sent multiple times or
a single time with values joined using ; .】