Functions
header(name) | First header value (string) |
headerValues(name) | All header values ([]string) |
headerList(name) | Comma-split header ([]string) |
contains(list, item) | List contains item (bool) |
anyOf(list, items...) | List has any of items (bool) |
allOf(list, items...) | List has all items (bool) |
matches(str, regex) | Regex match (bool) |
Examples
method == "GET" AND path startsWith "/api"
contains(headerList("X-Teams"), "platform-eng")
anyOf(headerList("X-Roles"), "admin", "editor")
matches(path, "^/api/v[0-9]+/.*")