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.
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.