Header
- header_name: String, the key in header
- patterns: String, representing multiple patterns, format is as “pattern1|pattern2”
Condition Primitive About Header
-
- Judge if header key in matches configured patterns
- Note: each word in header key need to be capitalized```
right:
req_header_key_in(“Header-Test”)
wrong:
req_header_key_in(“Header-test”)req_header_key_in(“header-test”)req_header_key_in(“header-Test”)```
-
- Judge if value of key in header matches configured patterns
req_header_value_prefix_in(header_name, patterns, case_insensitive)
-
- Judge if value suffix of key in header matches configured patterns
req_header_value_hash_in(header_name, patterns, case_insensitive)
- Judge if hash value of specified header matches configured patterns (value range: 0~9999)
-
- Judge if value of key in header contains configured patterns