outgoingMessage.appendHeader(name, value)


将单个标头值附加到标头对象。

¥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 ; .