http.request.headers.values
http.request.headers.valuesArray<String>HTTP 请求中标头的值。
这些值不会经过预处理,并保留请求中使用的原始大小写。
标头值的顺序不做保证,但会与 http.request.headers.names 的顺序一致。
重复的标头会被多次列出。
- 解码:不执行解码
- 空白字符:保留
- 非 ASCII 字符:保留
当 HTTP 请求包含过多标头时,此字段可能不会包含 HTTP 请求中发送的所有标头的值。在这种情况下,http.request.headers.truncated 字段将被设置为 true。
注意:在 HTTP/2 中,HTTP 标头的名称始终为小写。较新版本的 curl 工具会对 HTTPS 连接默认启用 HTTP/2。
示例值:
Example 1: ["application/json"]
Example 2: ["This header value is longer than 10 bytes"]用法示例:
# Example 1: Check for specific header value.
any(http.request.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.request.headers.values[*])[*] gt 10)类别:
- Request
- Headers