setContentType()
Last updated 1/10/2024
The
setContentType()
is a function used on the HTTPClient
object that allows you to set the content type for the request.
Available
Server
Function Signature
setContentType(mimeType: string) : FiveError;
Parameter | Type | Description |
---|---|---|
mimeType | string | The mime type of the contents as provided to the setContent() |
Return Value
Returns
null
on success, or a FiveError
in the event of a failure.