Skip to content

Request Cookie Related Primitives

  • Description: Judge if cookie key matches configured patterns

  • Parameters

Parameter Description
key_list String
a list of cookie keys which are concatenated using |
  • Example
req_cookie_key_in("uid|cid|uss")
  • Description: Judge if value of cookie key matches configured patterns

  • Parameters

Parameter Description
key String
cookie key
value_list String
a list of hash values which are concatenated using |
case_insensitive Boolean
case insensitive
  • Example
req_cookie_value_in("deviceid", "testid", true)
  • Description: Judge if value prefix of cookie key matches configured patterns

  • Parameters

Parameter Description
key String
cookie key
value_prefix_list String
a list of values which are concatenated using |
case_insensitive Boolean
case insensitive
  • Example
req_cookie_value_prefix_in("deviceid", "x", true)
  • Description: Judge if value suffix of cookie key matches configured patterns

  • Parameters

Parameter Description
key String
cookie key
value_suffix_list String
a list of values which are concatenated using |
case_insensitive Boolean
case insensitive
  • Example
req_cookie_value_suffix_in("deviceid", "1", true)
  • Description: Judge if hash value of specified cookie matches configured patterns(value range: 0~9999)

  • Parameters

Parameter Description
key String
cookie key
value_list String
a list of hash values which are concatenated using |
case_insensitive Boolean
case insensitive
  • Example
req_cookie_value_hash_in("uid", "100", true)
  • Description: Judge if value of cookie key contains configured patterns

  • Parameters

Parameter Description
key String
cookie key
value String
a string
case_insensitive Boolean
case insensitive
  • Example
req_cookie_value_contain("deviceid", "test", true)