温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/http/ClientRequest/appendHeader
点击访问原文链接

ClientRequest.appendHeader method | Node.js http module | Bun

ClientRequest.appendHeader method | Node.js http module | BunBuildDocsReferenceGuidesBlogDiscord/node:http/ClientRequest/appendHeaderMappendHeader

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:http/ClientRequest/appendHeaderMappendHeader

method

http.ClientRequest.appendHeaderappendHeader(name: string,value: string | readonly 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.

If there were no previous values for the header, this is equivalent to calling outgoingMessage.setHeader(name, value).

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

@param nameHeader name

@param valueHeader value

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录