Files
RustProxy/tools/dev/fixtures/vcl_regression/global.json
T
2026-11-25 15:47:34 +01:00

113 lines
2.4 KiB
JSON

{
"status": 200,
"body": {
"rules": [
{
"actions": [
{
"name": "X-Req-Scope",
"type": "set_request_header",
"value": "global"
},
{
"name": "X-Global-Request",
"type": "set_request_header",
"value": "global"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-request-2",
"match": "all",
"name": "VCL vcl_recv line 2",
"stage": "request"
},
{
"actions": [
{
"type": "pass"
}
],
"conditions": [
{
"field": "url",
"operator": "regex",
"values": [
"^/global-pass"
]
}
],
"enabled": true,
"id": "vcl-request-4",
"match": "all",
"name": "VCL vcl_recv line 4",
"stage": "request",
"stop": true
},
{
"actions": [
{
"name": "x-beresp-scope",
"type": "set_backend_header",
"value": "global"
},
{
"name": "x-global-response",
"type": "set_backend_header",
"value": "global"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-response-7",
"match": "all",
"name": "VCL vcl_backend_response line 7",
"stage": "response"
},
{
"actions": [
{
"seconds": 60,
"type": "ttl"
}
],
"conditions": [
{
"field": "url",
"operator": "regex",
"values": [
"^/ttl-priority"
]
}
],
"enabled": true,
"id": "vcl-response-9",
"match": "all",
"name": "VCL vcl_backend_response line 9",
"stage": "response"
},
{
"actions": [
{
"name": "X-Deliver-Scope",
"type": "set_header",
"value": "global"
},
{
"name": "X-Global-Delivery",
"type": "set_header",
"value": "global"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-deliver-12",
"match": "all",
"name": "VCL vcl_deliver line 12",
"stage": "deliver"
}
],
"warnings": []
}
}