setContentType()
Last updated 2/04/2024
The setContentType()
is a function used on the HTTPClient
object that allows you to set the content type for the request.
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.