restRespBodySetString (Function) |
Top Previous Next |
This function will set the body content of the response to the provided string.
When the body needs to contain mostly fixed data, one option is to use strTemplateCreate to add the dynamic data to a fixed template string, which can then be used as the body, without needing to manually create the entire string.
Input: resp : SYSHANDLE A handle to the response.
str : STRING The string to use for the body content.
Returns: INT
Declaration: FUNCTION restRespBodySetString: INT;
Example: Please see the "Examples - REST Example"
|