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;
Parameter | Type | Description |
---|---|---|
name | string | The name of the header |
value | string | The value of the header |
Return Value
Returns
null
on success, or a FiveError
in the event of a failure.