Skip to main content

setContent()

Last updated 1/10/2024

The

setContent()
is a function used on the
HTTPClient
object that allows you to set the contents of the body directly for a
POST
request.

info
Ensure that the body's contents type has been defined correctly using the
setContentType()
.

Available

Server

Function Signature
setContent(contents: string) : FiveError;

ParameterTypeDescription
contents
stringContents of the body

Return Value

Returns

null
on success, or a
FiveError
in the event of a failure.

Examples

setContent()