Skip to content

http.response.headers

http.response.headers Map<Array<String>>

The HTTP response headers represented as a Map (or associative array).

When there are repeating headers, the array includes them in the order they appear in the response. The keys convert to lowercase.

  • Decoding: No decoding performed
  • Whitespace: Preserved
  • Non-ASCII: Preserved

Example value:

{"server": ["nginx"]}

Example usage:

any(http.response.headers["server"][*] == "nginx")
Categories:
  • Response
  • Headers