Functions#

Functions can assist with comparison.

any#

Returns true when the comparison operator in the argument returns true for any values in argument array.

any(http.request.headers["block-me"][*] == "true")

concat#

Concatenates argument values into single string.

ends_with#

Returns true if first argument (field name, bytes) ends with second argument (literal bytes).

ends_with(http.request.uri, ".html")

lower#

Converts string argument to lowercase.

starts_with#

Returns true if first argument (field name, bytes) starts with second argument (literal bytes).

starts_with(http.request.uri.path, "/da")