Methods
-
Returns the value of the given header name. Note: Header-Names are case-insensitive.
Name Type Description namestring The header name to read
Returns:
Type Description string | null The value of the given header name or nullif the header isn't present. -
Checks whether the given header name is present. Note: Header-Names are case-insensitive.
Name Type Description namestring The header name to check
Returns:
Type Description boolean Returns trueif the header name is present,falseotherwise