--- date_last_completed: 2026-05-18 --- The `cloud_http` package provides functions to handle HTTP pages. ## `append_line_to_response_body_text`: Append text line to body Append the text supplied as parameter to the HTML body output, followed by a linefeed. Parameters: - `txt` (string, optional): Text to append to response body with a linefeed. ## `append_to_response_body_text`: Append text line Append the text supplied as parameter to the HTML body output. Parameters: - `txt` (string, optional): Text to append to response body. ## `get_request_form_file_content_disposition`: Get value of the form file content disposition Gets the first form file content disposition of the key specified as text value parameter. Parameters: - `key` (string, required): Name of key. ## `get_request_form_file_content_type`: Get value of the form file content type Gets the first form file content type of the key specified as text value parameter. Parameters: - `key` (string, required): Name of key. ## `get_request_form_file_contents`: Get binary value of the form file contents Gets the first form file contents of the key specified as text value parameter. For UTF-8, use to_char to change to text. Parameters: - `key` (string, required): Name of key. ## `get_request_form_file_header_value`: Get value of the form file header Gets the first form file header value of the key and header key specified as text value parameter. Parameters: - `key` (string, required): Name of key. - `headerKey` (string, required): Name of header key. ## `get_request_form_file_length`: Get value of the form file length Gets the first form file length of the key specified as text value parameter. Parameters: - `key` (string, required): Name of key. ## `get_request_form_file_name`: Get value of the form file name Gets the first form file name of the key specified as text value parameter. Parameters: - `key` (string, required): Name of key. ## `get_request_form_value`: Get value of request form element Gets the first form value of the key specified as text value parameter. Parameters: - `key` (string, required): Name of key. ## `get_request_header_value`: Get value of request header Gets the first header value of the key specified as text value parameter. Parameters: - `key` (string, required): Key to get value for. ## `get_request_query_parameter_value`: Get value of query parameter Gets the first query string value of the key specified as text value parameter. Parameters: - `key` (string, required): Name of key. ## `raise_application_error`: Raise an error Raise an application error on HTTP. Parameters: - `http_status_code` (int32, required): HTTP status code. - `message_code` (string, required): Message code. - `message` (string, required): Error message. - `kind_request` (string, optional): Actionable user hint. - `natural_key` (string, optional): Natural key. ## `set_response_body_binary`: Set response body to binary value Set/replace the body output to the BLOB supplied as parameter. Parameters: - `bin` (byte[], optional): Contents of response body in binary format. ## `set_response_body_text`: Set response body to text value Set/replace the body output by the text supplied as parameter. Parameters: - `txt` (string, optional): Contents of response body in text format. ## `set_response_content_type`: Set Content-Type Sets the Content-Type header to the text value specified. Parameters: - `contentType` (string, required): Content type of output. ## `set_response_header_value`: Set response header value Sets the first header value of the response to the value provided. Parameters: - `key` (string, required): Key to assign a value to. - `value` (string, optional): Value of key. ## `set_response_status_code`: Set response status code Sets the HTTP response status code. Parameters: - `statusCode` (int16, required): HTTP status code for response. ## `set_template_step_name`: Set template step name Sets the step name to the text value supplied as parameter. Only used with Invantive Cloud HTML templates. The step is shown in Invantive Cloud after the module name in the blue title bar. Parameters: - `name` (string, required): Human-readable name of step. ## `set_use_template`: Whether to use templates Sets whether to embed the output in the Invantive Cloud HTML template based upon the boolean supplied as parameter. Defaults to false. Parameters: - `use` (boolean, required): Whether to use templates.