Skip to main content

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;

ParameterTypeDescription
mimeType
stringThe 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.

Examples

setContentType()