Skip to content

concat#

The concat() function concatenates all the argument values into a single string.

Syntax#

concat(value1, value2, ...)

Parameters#

  • value1, value2, ...: The values to concatenate. These can be strings, numbers, or other data types that can be converted to strings.

Return Value#

Returns a single string containing all the concatenated values.

Example#

concat("Hello", " ", "World") // Returns "Hello World"
concat(http.request.uri, "?", http.request.query) // Concatenates the URI and query string

Use Cases#

  • Combining multiple parts of a URL
  • Creating custom log messages
  • Generating dynamic header values