Skip to content

lower#

The lower() function converts the provided string argument to lowercase.

Syntax#

lower(value)

Parameters#

  • value: The string value to convert to lowercase (field name, bytes)

Return Value#

Returns the lowercase version of the input string.

Example#

lower(http.request.headers["User-Agent"][0]) // Converts the User-Agent header to lowercase

Use Cases#

  • Normalising header values for consistent comparison
  • Implementing case-insensitive matching in rules
  • Standardising input for logging or analysis purposes