Skip to main content

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.

Available

Server


Function Signature
setContentType(mimeType: string) : FiveError;

ParameterTypeDescription
mimeTypestringThe 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()