Skip to content

Api > HeaderCollection > Contains()


HeaderCollection.Contains(string key)⚓︎

Is the collection containing the given key (header name)?

Parameters:⚓︎

Name Type Description
key string Key to check.

Returns:⚓︎

type Description
boolean True if there is a header with given name.

Usage⚓︎

---@type HeaderCollection
local headercollection;

---@type string
local key;


local val0 = headercollection.Contains(key)