Skip to content

Api > HeaderCollection > Add()


HeaderCollection.Add(KeyValue KeyValue)⚓︎

Add a new header by KeyValue.

Parameters:⚓︎

Name Type Description
KeyValue KeyValue KeyValue, Key as header name and Value as Header Value.

Usage⚓︎

---@type HeaderCollection
local headercollection;

---@type KeyValue
local KeyValue;


headercollection.Add(KeyValue)
ua ---@type HeaderCollection local headercollection;

---@type string local headerName;

---@type string local headerValue;

headercollection.Add(headerName, headerValue) ```