Github
来源:Baidu
浏览 426
扫码
分享
2019-11-17 09:25:27
Condition Naming Convention
- Name prefix of condition primitive:
- Condition primitive about request is used ”req_“ prefix
- Condition primitive about response is used ”res_“ prefix
- Condition primitive about session is used ”ses_“ prefix
- Condition primitive about system is used ”bfe_“ prefix
- Name of compare actions:
- match:exact match
- In this situation, the only one parameter is given
- eg. req_tag_match()
- in:if the value is in the configured set
- prefix_in:if the value prefix is in the configured set
- suffix_in:if the value suffix is in the configured set
- key_exist:if the key exists
- eg. req_query_key_exist()
- value_in:for the configured key, judge if the value is in the configured value set
- eg. req_query_key_exist()
- value_prefix_in:for the configured key, judge if the value prefix is in the configured set
- eg. req_header_value_prefix_in()
- value_suffix_in:for the configured key, judge if the value suffix is in the configured set
- eg. req_header_value_suffix_in()
- range: range match
- regmatch:regular match
- contain: string match
- eg. req_cookie_value_contain()
当前内容版权归
Baidu 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
Baidu .