Skip to main content

addHeader()

Last updated 2/04/2024

The addHeader() is a function used on the HTTPClient object that allows you to add additional HTTP headers to your request.

Available

Server


Function Signature
addHeader(name: string, value: string) : FiveError;

ParameterTypeDescription
namestringThe name of the header
valuestringThe value of the header

Return Value

Returns null on success, or a FiveError in the event of a failure.

Examples

addHeader()