Skip to content

http.response.headers.values

http.response.headers.values Array<String>

The values of the headers in the HTTP response.

The values are not pre-processed and retain the original case used in the response.

The order of header values is not guaranteed but will match http.response.headers.names.

Duplicate headers are listed multiple times.

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

Example value:

Example 1: ["application/json"]
Example 2: ["This header value is longer than 10 bytes"]

Example usage:

# Example 1: Check for specific header value.
any(http.response.headers.values[*] == "application/json")
# Example 2: Match requests according to the specified operator and the length/size entered for the header value.
any(len(http.response.headers.values[*])[*] gt 10)
Categories:
  • Response
  • Headers