MCPcopy Create free account
hub / github.com/denoland/std / appendHeader

Function appendHeader

http/unstable_message_signatures.ts:858–865  ·  view source on GitHub ↗
(headers: Headers, name: string, value: string)

Source from the content-addressed store, hash-verified

856}
857
858function appendHeader(headers: Headers, name: string, value: string): void {
859 const existing = headers.get(name);
860 if (existing) {
861 headers.set(name, `${existing}, ${value}`);
862 } else {
863 headers.set(name, value);
864 }
865}
866
867// Per RFC 9421 §4, signature labels MUST be unique within an HTTP message
868// across both the Signature-Input and Signature dictionaries. Appending a

Callers 1

signMessageFunction · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected