Skip to content

http.response.headers.names

http.response.headers.names Array<String>

The names of the headers in the HTTP response.

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

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

Duplicate headers are listed multiple times.

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

Example value:

["content-type"]

Example usage:

any(http.response.headers.names[*] == "content-type")
Categories:
  • Response
  • Headers