Project: BFE (Orchestration & Management / Service Proxy)
File: uri.md

Description: Judge if host matches configured patterns Parameters | Parameter | Description | | | - | | host_list | String<br>a list of hosts keys which are concatenated using &#124;<br>case insensitive | Example ```go // right reqhostin("www.bfe-networks.com|bfe-networks.com") // wrong reqhostin("www.bfe-networks.com | bfe-networks.com") ``` Description: Judge if request path matches configured patterns Parameters | Parameter | Description | | | - | | path_list | String<br>a list of paths which are concatenated using &#124; <br>Each path should start with '/' | | case_insensitive | Boolean<br>case insensitive | Example ```go reqpathin("/api/search|/api/list", true) ``` Description: Judge if request path contains configured patterns Parameters | Parameter | Description | | | - | | path_list | String<br>path's substring list which are concatenated with &#124; | | case_insensitive | Boolean<br>case insensitive | Example ```go reqpathcontain("search|analytics", true) ``` Description: Judge if request path prefix matches configured patterns Parameters | Parameter | Description | | | - | | prefix_list | String<br>a list of path prefixs which are concatenated using &#124; <br>Each path prefix should start with '/' | | case_insensitive | Boolean<br>case insensitive | Example ```go reqpathprefix_in("/api/report|/api/analytics", false) ``` Description: Judge if request path suffix matches configured patterns Parameters | Parameter | Description | | | - | | suffix_list | String<br>a list of path sufixs which are concatenated using &#124; | | case_insensitive | Boolean<br>case insensitive | Example ```go reqpathsuffix_in(".php|.jsp", false) ``` Description: Judge if request path element prefix matches configured patterns Parameters | Parameter | Description | | | - | | prefix_list | String<br>a list of path element prefixs which are concatenated using &#124; <br>Each path prefix should start with '/' and end with '/', Automatic add '/' suffix when not end with '/' | | case_insensitive | Boolean<br>case insensitive | Example ```go reqpathelementprefixin("/api/report/|/api/analytics/", false) ``` Description: Judge if query key matches configured patterns Parameters | Parameter | Description | | | - | | key_list | String<br>a list of query keys which are concatenated

&#124; | Example ```go reqquerykey_exist("word|wd") ``` Description: Judge if query key prefix matches configured patterns Parameters | Parameter | Description | | | - | | prefix_list | String<br>a list of query key prefixs which are concatenated using &#124; | Example ```go reqquerykeyprefixin("rid") ``` Description: Judge if value of query key matches configured patterns Parameters | Parameter | Description | | | - | | key | String<br> query key | | value_list | String<br>a list of query values which are concatenated using &#124; | | case_insensitive | Boolean<br>case insensitive | Example ```go reqqueryvalue_in("uid", "x|y|z", true) ``` Description: Judge if value prefix of query key matches configured patterns Parameters | Parameter | Description | | | - | | key | String<br> query key | | value_list | String<br>a list of query value prefixs which are concatenated using &#124; | | case_insensitive | Boolean<br>case insensitive | Example ```go reqqueryvalueprefixin("uid", "100|200", true) ``` Description: Judge if value suffix of query key matches configured patterns Parameters | Parameter | Description | | | - | | key | String<br> query key | | suffix_list | String<br>a list of query value suffixs which are concatenated using &#124; | | case_insensitive | Boolean<br>case insensitive | Example ```go reqqueryvaluesuffixin("uid", "1|2|3", true) ``` Description: Judge if the hash value of specified query matches configured patterns (value after hash is 09999) Parameters | Parameter | Description | | | - | | key | String<br> query key | | value_list | String<br>a list of hash values which are concatenated using &#124; | | case_insensitive | Boolean<br>case insensitive | Example ```go reqqueryvaluehashin("cid", "100", true) ``` Description: Judge if port matches configured patterns Parameters | Parameter | Description | | | - | | port_list | String<br>a list of ports which are concatenated using &#124; | Example ```go reqportin("80|8080") ``` Description: patterns is regular expression to match url Parameters | Parameter | Description | | | - | | reg_exp | String<br>a regular expression<br> It is recommended that use `` to avoid from character escaping | Example ```go requrlregmatch(`/s\?word=123`) ```