Skip to main content

setContent()

Last updated 3/04/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
contentsstringContents of the body

Return Value

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

Examples

setContent()