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

156 lines
3.2 KiB
JSON

{
"status": 200,
"body": {
"rules": [
{
"actions": [],
"conditions": [],
"enabled": true,
"id": "vcl-request-2",
"match": "all",
"name": "VCL vcl_recv branch line 2",
"stage": "request",
"vcl_flow": {
"branches": [
{
"any": [
[
{
"field": "header",
"name": "X-Flag",
"operator": "exists"
}
]
]
}
],
"count": 5,
"group": "g1",
"index": 0,
"version": 1
}
},
{
"actions": [
{
"name": "X-Flag",
"type": "remove_request_header"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-request-3",
"match": "all",
"name": "VCL vcl_recv line 3",
"stage": "request",
"vcl_flow": {
"count": 5,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 0
}
],
"index": 1,
"version": 1
}
},
{
"actions": [],
"conditions": [],
"enabled": true,
"id": "vcl-request-4",
"match": "all",
"name": "VCL vcl_recv branch line 4",
"stage": "request",
"vcl_flow": {
"branches": [
{
"any": [
[
{
"field": "header",
"name": "X-Flag",
"negate": true,
"operator": "exists"
}
]
]
}
],
"count": 5,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 0
}
],
"index": 2,
"version": 1
}
},
{
"actions": [
{
"name": "X-Nested",
"type": "set_request_header",
"value": "yes"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-request-4-2",
"match": "all",
"name": "VCL vcl_recv line 4",
"stage": "request",
"vcl_flow": {
"count": 5,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 0
},
{
"branch": 0,
"entry": 2
}
],
"index": 3,
"version": 1
}
},
{
"actions": [
{
"name": "X-Tail",
"type": "set_request_header",
"value": "yes"
}
],
"conditions": [],
"enabled": true,
"id": "vcl-request-5",
"match": "all",
"name": "VCL vcl_recv line 5",
"stage": "request",
"vcl_flow": {
"count": 5,
"group": "g1",
"guards": [
{
"branch": 0,
"entry": 0
}
],
"index": 4,
"version": 1
}
}
],
"warnings": []
}
}