Append CMCD query args to a header object.
The headers to append to.
The CMCD object to append.
Optional
Encode options.
The headers with the CMCD header shards appended.
const headers = { hello: 'world',}const data = { br: [1000],}deepEqual(appendCmcdHeaders(headers, data), { hello: 'world', ['CMCD-Object']: 'br=(1000)', ['CMCD-Session']: 'v=2',}) Copy
const headers = { hello: 'world',}const data = { br: [1000],}deepEqual(appendCmcdHeaders(headers, data), { hello: 'world', ['CMCD-Object']: 'br=(1000)', ['CMCD-Session']: 'v=2',})
Append CMCD query args to a header object.