Skip to main content

addHeader()

Last updated 1/10/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
name
stringThe name of the header
value
stringThe value of the header

Return Value

Returns

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

Examples

addHeader()