The variables of the rule engine allow you to dynamically extract and process data within request. These variables can not only store static values but also use for specific fields or information in the request, the value of which may change when processing each request. For example: the http.request.host variable, which can extract the hostname in each HTTP request. This capability enables the rule engine to handle more complex business logic.
Content
Below are the preset variables currently supported by EdgeOne, which extract specific fields or information from client HTTP requests as variables.
Note:
When using variables, please adhere to the following format: ${http.request.scheme}. If the format or name is incorrect, the variable cannot be successfully utilized.
Currently, variables can be used independently, concatenated with constants, or combined with other variables.
Name
Type
Description
Example
http.request.scheme
String
Client request protocol
http
https
http.request.zone
String
Site name
example.com
http.request.zoneid
String
Site ID
zone-2c2r77pc3796
http.request.host
String
Hostname in the client request URI
www.example.com
http.request.full_uri
String
Full URI of the client request (not including #fragment)
1. The custom origin-pull request header carries the information of the country where the client IP address is located back to the origin.
2. Custom origin-pull request headers allow the origin server to collect and analyze which domains have been accelerated by Tencent's EdgeOne.
3. Custom Cross-Origin Request Policy: Allows cross-origin requests from domains specified in the Origin header of the request.
4. Custom Node Response Header: Utilize the value of the filename parameter in the URL and concatenate it with a fixed constant to form the value of the Content-Disposition response header.