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

539 lines
12 KiB
JSON

{
"status": 200,
"body": {
"rules": [
{
"actions": [],
"conditions": [],
"enabled": true,
"id": "vcl-response-2",
"match": "all",
"name": "VCL vcl_backend_response branch line 2",
"stage": "response",
"vcl_flow": {
"branches": [
{
"any": [
[
{
"field": "url",
"operator": "regex",
"values": [
"^/toggle"
]
}
]
]
}
],
"count": 19,
"group": "g1",
"index": 0,
"version": 1
}
},
{
"actions": [
{
"type": "no_store"
},
{
"type": "allow_store"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-response-3",
"match": "all",
"name": "VCL vcl_backend_response line 3",
"stage": "response",
"vcl_flow": {
"count": 19,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 0
}
],
"index": 1,
"version": 1
}
},
{
"actions": [],
"conditions": [],
"enabled": true,
"id": "vcl-response-6",
"match": "all",
"name": "VCL vcl_backend_response branch line 6",
"stage": "response",
"vcl_flow": {
"branches": [
{
"any": [
[
{
"field": "url",
"operator": "regex",
"values": [
"^/no-store"
]
}
]
]
}
],
"count": 19,
"group": "g1",
"index": 2,
"version": 1
}
},
{
"actions": [
{
"type": "allow_store"
},
{
"type": "no_store"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-response-7",
"match": "all",
"name": "VCL vcl_backend_response line 7",
"stage": "response",
"vcl_flow": {
"count": 19,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 2
}
],
"index": 3,
"version": 1
}
},
{
"actions": [],
"conditions": [],
"enabled": true,
"id": "vcl-response-10",
"match": "all",
"name": "VCL vcl_backend_response branch line 10",
"stage": "response",
"vcl_flow": {
"branches": [
{
"any": [
[
{
"field": "url",
"operator": "regex",
"values": [
"^/response-pass"
]
}
]
]
}
],
"count": 19,
"group": "g1",
"index": 4,
"version": 1
}
},
{
"actions": [
{
"type": "no_store"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-response-10-2",
"match": "all",
"name": "VCL vcl_backend_response line 10",
"stage": "response",
"stop": true,
"vcl_flow": {
"count": 19,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 4
}
],
"index": 5,
"version": 1
}
},
{
"actions": [],
"conditions": [],
"enabled": true,
"id": "vcl-response-11",
"match": "all",
"name": "VCL vcl_backend_response branch line 11",
"stage": "response",
"vcl_flow": {
"branches": [
{
"any": [
[
{
"field": "url",
"operator": "regex",
"values": [
"^/private|^/origin-no-store|^/set-cookie|^/policy-no-store"
]
}
]
]
}
],
"count": 19,
"group": "g1",
"index": 6,
"version": 1
}
},
{
"actions": [
{
"type": "allow_store"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-response-12",
"match": "all",
"name": "VCL vcl_backend_response line 12",
"stage": "response",
"vcl_flow": {
"count": 19,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 6
}
],
"index": 7,
"version": 1
}
},
{
"actions": [],
"conditions": [],
"enabled": true,
"id": "vcl-response-14",
"match": "all",
"name": "VCL vcl_backend_response branch line 14",
"stage": "response",
"vcl_flow": {
"branches": [
{
"any": [
[
{
"field": "url",
"operator": "regex",
"values": [
"^/drop-cookie"
]
}
]
]
}
],
"count": 19,
"group": "g1",
"index": 8,
"version": 1
}
},
{
"actions": [
{
"type": "strip_set_cookie"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-response-14-2",
"match": "all",
"name": "VCL vcl_backend_response line 14",
"stage": "response",
"vcl_flow": {
"count": 19,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 8
}
],
"index": 9,
"version": 1
}
},
{
"actions": [],
"conditions": [],
"enabled": true,
"id": "vcl-response-15",
"match": "all",
"name": "VCL vcl_backend_response branch line 15",
"stage": "response",
"vcl_flow": {
"branches": [
{
"any": [
[
{
"field": "url",
"operator": "regex",
"values": [
"^/public-override"
]
}
]
]
}
],
"count": 19,
"group": "g1",
"index": 10,
"version": 1
}
},
{
"actions": [
{
"name": "cache-control",
"type": "set_backend_header",
"value": "public, max-age=300"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-response-16",
"match": "all",
"name": "VCL vcl_backend_response line 16",
"stage": "response",
"vcl_flow": {
"count": 19,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 10
}
],
"index": 11,
"version": 1
}
},
{
"actions": [],
"conditions": [],
"enabled": true,
"id": "vcl-response-18",
"match": "all",
"name": "VCL vcl_backend_response branch line 18",
"stage": "response",
"vcl_flow": {
"branches": [
{
"any": [
[
{
"field": "url",
"operator": "regex",
"values": [
"^/response-stop"
]
}
]
]
}
],
"count": 19,
"group": "g1",
"index": 12,
"version": 1
}
},
{
"actions": [
{
"name": "x-response-stop",
"type": "set_backend_header",
"value": "before"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-response-20",
"match": "all",
"name": "VCL vcl_backend_response line 20",
"stage": "response",
"stop": true,
"vcl_flow": {
"count": 19,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 12
}
],
"index": 13,
"version": 1
}
},
{
"actions": [
{
"name": "x-response-stop",
"type": "set_backend_header",
"value": "after"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-response-21",
"match": "all",
"name": "VCL vcl_backend_response line 21",
"stage": "response",
"vcl_flow": {
"count": 19,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 12
}
],
"index": 14,
"version": 1
}
},
{
"actions": [
{
"name": "X-After-Response-Stop",
"type": "set_header",
"value": "yes"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-deliver-25",
"match": "all",
"name": "VCL vcl_deliver line 25",
"stage": "deliver",
"vcl_flow": {
"count": 19,
"group": "g1",
"index": 15,
"version": 1
}
},
{
"actions": [],
"conditions": [],
"enabled": true,
"id": "vcl-deliver-26",
"match": "all",
"name": "VCL vcl_deliver branch line 26",
"stage": "deliver",
"vcl_flow": {
"branches": [
{
"any": [
[
{
"field": "url",
"operator": "regex",
"values": [
"^/deliver-stop"
]
}
]
]
}
],
"count": 19,
"group": "g1",
"index": 16,
"version": 1
}
},
{
"actions": [
{
"name": "X-Deliver-Stop",
"type": "set_header",
"value": "before"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-deliver-28",
"match": "all",
"name": "VCL vcl_deliver line 28",
"stage": "deliver",
"stop": true,
"vcl_flow": {
"count": 19,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 16
}
],
"index": 17,
"version": 1
}
},
{
"actions": [
{
"name": "X-Deliver-Stop",
"type": "set_header",
"value": "after"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-deliver-29",
"match": "all",
"name": "VCL vcl_deliver line 29",
"stage": "deliver",
"vcl_flow": {
"count": 19,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 16
}
],
"index": 18,
"version": 1
}
}
],
"warnings": []
}
}