Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename vcl_fetch{} to vcl_response{}

  • Loading branch information...
commit 084fe159017f38b5b132dbb68f3bc60ab1557935 1 parent b7572af
@bsdphk bsdphk authored
Showing with 192 additions and 192 deletions.
  1. +1 −1  bin/varnishd/cache/cache_req_fsm.c
  2. +1 −1  bin/varnishd/default.vcl
  3. +1 −1  bin/varnishtest/tests.disabled/r00929.vtc
  4. +1 −1  bin/varnishtest/tests.disabled/r00978.vtc
  5. +1 −1  bin/varnishtest/tests.disabled/r00979.vtc
  6. +1 −1  bin/varnishtest/tests.disabled/r00980.vtc
  7. +1 −1  bin/varnishtest/tests.disabled/t00000.vtc
  8. +1 −1  bin/varnishtest/tests.disabled/t00001.vtc
  9. +1 −1  bin/varnishtest/tests/b00015.vtc
  10. +2 −2 bin/varnishtest/tests/b00018.vtc
  11. +1 −1  bin/varnishtest/tests/b00019.vtc
  12. +1 −1  bin/varnishtest/tests/b00020.vtc
  13. +1 −1  bin/varnishtest/tests/b00021.vtc
  14. +1 −1  bin/varnishtest/tests/b00022.vtc
  15. +1 −1  bin/varnishtest/tests/b00027.vtc
  16. +1 −1  bin/varnishtest/tests/b00028.vtc
  17. +1 −1  bin/varnishtest/tests/c00001.vtc
  18. +1 −1  bin/varnishtest/tests/c00009.vtc
  19. +1 −1  bin/varnishtest/tests/c00011.vtc
  20. +1 −1  bin/varnishtest/tests/c00014.vtc
  21. +1 −1  bin/varnishtest/tests/c00027.vtc
  22. +1 −1  bin/varnishtest/tests/c00029.vtc
  23. +1 −1  bin/varnishtest/tests/c00030.vtc
  24. +1 −1  bin/varnishtest/tests/c00032.vtc
  25. +1 −1  bin/varnishtest/tests/c00044.vtc
  26. +1 −1  bin/varnishtest/tests/c00045.vtc
  27. +1 −1  bin/varnishtest/tests/c00046.vtc
  28. +1 −1  bin/varnishtest/tests/c00047.vtc
  29. +1 −1  bin/varnishtest/tests/c00055.vtc
  30. +1 −1  bin/varnishtest/tests/e00000.vtc
  31. +1 −1  bin/varnishtest/tests/e00001.vtc
  32. +1 −1  bin/varnishtest/tests/e00002.vtc
  33. +1 −1  bin/varnishtest/tests/e00003.vtc
  34. +1 −1  bin/varnishtest/tests/e00004.vtc
  35. +1 −1  bin/varnishtest/tests/e00005.vtc
  36. +1 −1  bin/varnishtest/tests/e00006.vtc
  37. +1 −1  bin/varnishtest/tests/e00007.vtc
  38. +1 −1  bin/varnishtest/tests/e00008.vtc
  39. +1 −1  bin/varnishtest/tests/e00009.vtc
  40. +1 −1  bin/varnishtest/tests/e00010.vtc
  41. +1 −1  bin/varnishtest/tests/e00011.vtc
  42. +1 −1  bin/varnishtest/tests/e00012.vtc
  43. +1 −1  bin/varnishtest/tests/e00013.vtc
  44. +1 −1  bin/varnishtest/tests/e00014.vtc
  45. +1 −1  bin/varnishtest/tests/e00015.vtc
  46. +1 −1  bin/varnishtest/tests/e00016.vtc
  47. +1 −1  bin/varnishtest/tests/e00017.vtc
  48. +1 −1  bin/varnishtest/tests/e00018.vtc
  49. +1 −1  bin/varnishtest/tests/e00019.vtc
  50. +1 −1  bin/varnishtest/tests/e00020.vtc
  51. +1 −1  bin/varnishtest/tests/e00021.vtc
  52. +1 −1  bin/varnishtest/tests/e00022.vtc
  53. +1 −1  bin/varnishtest/tests/e00023.vtc
  54. +1 −1  bin/varnishtest/tests/e00024.vtc
  55. +1 −1  bin/varnishtest/tests/e00026.vtc
  56. +1 −1  bin/varnishtest/tests/e00027.vtc
  57. +1 −1  bin/varnishtest/tests/g00002.vtc
  58. +1 −1  bin/varnishtest/tests/g00003.vtc
  59. +1 −1  bin/varnishtest/tests/g00004.vtc
  60. +1 −1  bin/varnishtest/tests/m00002.vtc
  61. +1 −1  bin/varnishtest/tests/m00006.vtc
  62. +2 −2 bin/varnishtest/tests/p00005.vtc
  63. +1 −1  bin/varnishtest/tests/p00008.vtc
  64. +1 −1  bin/varnishtest/tests/r00251.vtc
  65. +1 −1  bin/varnishtest/tests/r00318.vtc
  66. +1 −1  bin/varnishtest/tests/r00326.vtc
  67. +1 −1  bin/varnishtest/tests/r00345.vtc
  68. +1 −1  bin/varnishtest/tests/r00386.vtc
  69. +1 −1  bin/varnishtest/tests/r00387.vtc
  70. +1 −1  bin/varnishtest/tests/r00411.vtc
  71. +1 −1  bin/varnishtest/tests/r00412.vtc
  72. +1 −1  bin/varnishtest/tests/r00427.vtc
  73. +1 −1  bin/varnishtest/tests/r00433.vtc
  74. +1 −1  bin/varnishtest/tests/r00445.vtc
  75. +1 −1  bin/varnishtest/tests/r00476.vtc
  76. +1 −1  bin/varnishtest/tests/r00494.vtc
  77. +1 −1  bin/varnishtest/tests/r00524.vtc
  78. +1 −1  bin/varnishtest/tests/r00590.vtc
  79. +1 −1  bin/varnishtest/tests/r00612.vtc
  80. +1 −1  bin/varnishtest/tests/r00641.vtc
  81. +1 −1  bin/varnishtest/tests/r00667.vtc
  82. +1 −1  bin/varnishtest/tests/r00702.vtc
  83. +1 −1  bin/varnishtest/tests/r00704.vtc
  84. +1 −1  bin/varnishtest/tests/r00769.vtc
  85. +1 −1  bin/varnishtest/tests/r00801.vtc
  86. +1 −1  bin/varnishtest/tests/r00861.vtc
  87. +1 −1  bin/varnishtest/tests/r00873.vtc
  88. +1 −1  bin/varnishtest/tests/r00894.vtc
  89. +1 −1  bin/varnishtest/tests/r00913.vtc
  90. +1 −1  bin/varnishtest/tests/r00915.vtc
  91. +1 −1  bin/varnishtest/tests/r00916.vtc
  92. +1 −1  bin/varnishtest/tests/r00941.vtc
  93. +1 −1  bin/varnishtest/tests/r00942.vtc
  94. +1 −1  bin/varnishtest/tests/r00956.vtc
  95. +1 −1  bin/varnishtest/tests/r00961.vtc
  96. +1 −1  bin/varnishtest/tests/r00962.vtc
  97. +1 −1  bin/varnishtest/tests/r00972.vtc
  98. +1 −1  bin/varnishtest/tests/r01029.vtc
  99. +1 −1  bin/varnishtest/tests/r01030.vtc
  100. +1 −1  bin/varnishtest/tests/r01036.vtc
  101. +1 −1  bin/varnishtest/tests/r01037.vtc
  102. +1 −1  bin/varnishtest/tests/r01038.vtc
  103. +1 −1  bin/varnishtest/tests/r01091.vtc
  104. +1 −1  bin/varnishtest/tests/r01092.vtc
  105. +1 −1  bin/varnishtest/tests/r01109.vtc
  106. +1 −1  bin/varnishtest/tests/r01113.vtc
  107. +1 −1  bin/varnishtest/tests/r01123.vtc
  108. +1 −1  bin/varnishtest/tests/r01157.vtc
  109. +1 −1  bin/varnishtest/tests/r01168.vtc
  110. +1 −1  bin/varnishtest/tests/r01175.vtc
  111. +3 −3 bin/varnishtest/tests/r01184.vtc
  112. +1 −1  bin/varnishtest/tests/r01206.vtc
  113. +2 −2 bin/varnishtest/tests/r01253.vtc
  114. +1 −1  bin/varnishtest/tests/r01283.vtc
  115. +1 −1  bin/varnishtest/tests/r01284.vtc
  116. +1 −1  bin/varnishtest/tests/s00002.vtc
  117. +1 −1  bin/varnishtest/tests/s00003.vtc
  118. +1 −1  bin/varnishtest/tests/v00000.vtc
  119. +1 −1  bin/varnishtest/tests/v00001.vtc
  120. +1 −1  bin/varnishtest/tests/v00010.vtc
  121. +3 −3 bin/varnishtest/tests/v00016.vtc
  122. +9 −9 bin/varnishtest/tests/v00018.vtc
  123. +7 −7 bin/varnishtest/tests/v00020.vtc
  124. +1 −1  bin/varnishtest/tests/v00025.vtc
  125. +1 −1  bin/varnishtest/tests/v00032.vtc
  126. +1 −1  bin/varnishtest/tests/v00033.vtc
  127. +1 −1  etc/zope-plone.vcl
  128. +43 −43 lib/libvcl/generate.py
  129. +1 −1  lib/libvcl/vcc_action.c
View
2  bin/varnishd/cache/cache_req_fsm.c
@@ -416,7 +416,7 @@ cnt_fetch(struct worker *wrk, struct req *req)
AZ(bo->do_esi);
AZ(bo->do_pass);
- VCL_fetch_method(req);
+ VCL_response_method(req);
if (bo->do_pass)
req->objcore->flags |= OC_F_PASS;
View
2  bin/varnishd/default.vcl
@@ -101,7 +101,7 @@ sub vcl_miss {
return (fetch);
}
-sub vcl_fetch {
+sub vcl_response {
if (beresp.ttl <= 0s ||
beresp.http.Set-Cookie ||
beresp.http.Surrogate-control ~ "no-store" ||
View
2  bin/varnishtest/tests.disabled/r00929.vtc
@@ -8,7 +8,7 @@ server s1 {
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = true;
}
View
2  bin/varnishtest/tests.disabled/r00978.vtc
@@ -22,7 +22,7 @@ varnish v1 -vcl+backend {
set req.url = req.url + req.esi_level;
}
}
- sub vcl_fetch {
+ sub vcl_response {
if (req.url == "/") {
set beresp.do_esi = true;
}
View
2  bin/varnishtest/tests.disabled/r00979.vtc
@@ -11,7 +11,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = true;
}
sub vcl_deliver {
View
2  bin/varnishtest/tests.disabled/r00980.vtc
@@ -9,7 +9,7 @@ server s1 {
varnish v1 -cliok "param.set http_gzip_support true" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_gzip = true;
set beresp.do_stream = true;
}
View
2  bin/varnishtest/tests.disabled/t00000.vtc
@@ -15,7 +15,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = true;
}
} -start
View
2  bin/varnishtest/tests.disabled/t00001.vtc
@@ -22,7 +22,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (req.url == "/foo") {
set beresp.do_gzip = true;
}
View
2  bin/varnishtest/tests/b00015.vtc
@@ -53,7 +53,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.status == 502) {
set beresp.ttl = 10m;
}
View
4 bin/varnishtest/tests/b00018.vtc
@@ -1,4 +1,4 @@
-varnishtest "Check that error in vcl_fetch works"
+varnishtest "Check that error in vcl_response works"
server s1 {
rxreq
@@ -6,7 +6,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.http.Foo = "bar";
error 523 "not ok";
}
View
2  bin/varnishtest/tests/b00019.vtc
@@ -21,7 +21,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
return (restart);
}
View
2  bin/varnishtest/tests/b00020.vtc
@@ -10,7 +10,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = false;
}
} -start
View
2  bin/varnishtest/tests/b00021.vtc
@@ -13,7 +13,7 @@ varnish v1 -vcl+backend {
sub vcl_miss {
set bereq.between_bytes_timeout = 2s;
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = false;
}
} -start
View
2  bin/varnishtest/tests/b00022.vtc
@@ -15,7 +15,7 @@ varnish v1 -vcl {
.port = "${s1_port}";
.between_bytes_timeout = 1s;
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = false;
}
} -start
View
2  bin/varnishtest/tests/b00027.vtc
@@ -12,7 +12,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = false;
}
} -start
View
2  bin/varnishtest/tests/b00028.vtc
@@ -7,7 +7,7 @@ server s1 {
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.http.foo ~ "bar") {
set beresp.http.foo1 = "1";
} else {
View
2  bin/varnishtest/tests/c00001.vtc
@@ -9,7 +9,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.http.Snafu1 = regsub(beresp.http.Foobar, "ar", "\0\0");
set beresp.http.Snafu2 =
regsub(beresp.http.Foobar, "(b)(a)(r)(f)", "\4\3\2p");
View
2  bin/varnishtest/tests/c00009.vtc
@@ -21,7 +21,7 @@ varnish v1 -vcl+backend {
}
}
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.status != 200) {
return (restart);
}
View
2  bin/varnishtest/tests/c00011.vtc
@@ -10,7 +10,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_pass = true;
}
} -start
View
2  bin/varnishtest/tests/c00014.vtc
@@ -14,7 +14,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_pass = true;
}
} -start
View
2  bin/varnishtest/tests/c00027.vtc
@@ -19,7 +19,7 @@ server s1 {
} -start
varnish v1 -arg "-s malloc,1M" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.ttl = 10m;
}
} -start
View
2  bin/varnishtest/tests/c00029.vtc
@@ -37,7 +37,7 @@ varnish v1 -arg "-p saintmode_threshold=2" -vcl+backend {
set req.grace = 1h;
}
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.http.X-Saint == "yes") {
set beresp.saintmode = 20s;
return(restart);
View
2  bin/varnishtest/tests/c00030.vtc
@@ -44,7 +44,7 @@ varnish v1 -arg "-p saintmode_threshold=10" -vcl {
set req.grace = 1h;
}
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.http.X-Saint == "yes") {
set beresp.saintmode = 20s;
return (restart);
View
2  bin/varnishtest/tests/c00032.vtc
@@ -20,7 +20,7 @@ varnish v1 -vcl+backend {
}
}
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.status == 400) {
rollback;
set req.url = "/bar";
View
2  bin/varnishtest/tests/c00044.vtc
@@ -16,7 +16,7 @@ server s1 {
} -start
varnish v1 -storage "-smalloc,1m -smalloc,1m, -smalloc,1m" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.storage = "invalid";
}
} -start
View
2  bin/varnishtest/tests/c00045.vtc
@@ -10,7 +10,7 @@ server s1 {
} -start
varnish v1 -storage "-smalloc,1m -smalloc,1m, -smalloc,1m" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.storage = "s0";
}
} -start
View
2  bin/varnishtest/tests/c00046.vtc
@@ -10,7 +10,7 @@ server s1 {
} -start
varnish v1 -storage "-smalloc,1m -smalloc,1m, -smalloc,1m" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.storage = "s0";
}
} -start
View
2  bin/varnishtest/tests/c00047.vtc
@@ -8,7 +8,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.http.baz1 = regsuball(beresp.http.foo, "barb", "zz");
set beresp.http.baz2 = regsuball(beresp.http.foo, "ar", "zz");
set beresp.http.baz3 = regsuball(beresp.http.foo, "^", "baz");
View
2  bin/varnishtest/tests/c00055.vtc
@@ -15,7 +15,7 @@ varnish v1 -vcl+backend {
C{ VRT_CacheReqBody(req, 1000); }C
return (pass);
}
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.http.foo == "BAR") {
return (restart);
}
View
2  bin/varnishtest/tests/e00000.vtc
@@ -9,7 +9,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00001.vtc
@@ -14,7 +14,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start -cliok "param.set esi_syntax 4"
View
2  bin/varnishtest/tests/e00002.vtc
@@ -13,7 +13,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00003.vtc
@@ -22,7 +22,7 @@ varnish v1 -vcl+backend {
set req.url = req.url + req.esi_level;
}
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00004.vtc
@@ -17,7 +17,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00005.vtc
@@ -18,7 +18,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00006.vtc
@@ -29,7 +29,7 @@ varnish v1 -vcl+backend {
set req.backend = s1;
}
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00007.vtc
@@ -32,7 +32,7 @@ server s1 {
} -start
varnish v1 -storage "-smalloc,2m" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00008.vtc
@@ -56,7 +56,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00009.vtc
@@ -18,7 +18,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00010.vtc
@@ -12,7 +12,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start -cli "param.set esi_syntax 2"
View
2  bin/varnishtest/tests/e00011.vtc
@@ -16,7 +16,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_pass = true;
set beresp.do_esi = true;
}
View
2  bin/varnishtest/tests/e00012.vtc
@@ -17,7 +17,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00013.vtc
@@ -8,7 +8,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00014.vtc
@@ -10,7 +10,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00015.vtc
@@ -23,7 +23,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if(req.url == "/") {
set req.esi = false;
}
View
2  bin/varnishtest/tests/e00016.vtc
@@ -27,7 +27,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set req.esi = true;
if(req.url == "/body") {
set req.esi = false;
View
2  bin/varnishtest/tests/e00017.vtc
@@ -71,7 +71,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00018.vtc
@@ -36,7 +36,7 @@ varnish v1 -vcl+backend {
sub vcl_recv {
return (pass);
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00019.vtc
@@ -29,7 +29,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (req.url == "bar") {
set beresp.do_esi = true;
}
View
2  bin/varnishtest/tests/e00020.vtc
@@ -14,7 +14,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
set beresp.do_gunzip = true;
}
View
2  bin/varnishtest/tests/e00021.vtc
@@ -17,7 +17,7 @@ varnish v1 -vcl+backend {
sub vcl_recv {
set req.esi = true;
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
set beresp.do_gzip = true;
}
View
2  bin/varnishtest/tests/e00022.vtc
@@ -18,7 +18,7 @@ varnish v1 -arg "-p thread_pool_stack=262144" -vcl+backend {
sub vcl_recv {
set req.esi = true;
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00023.vtc
@@ -36,7 +36,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/e00024.vtc
@@ -60,7 +60,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (req.url == "/") {
set beresp.do_esi = true;
}
View
2  bin/varnishtest/tests/e00026.vtc
@@ -28,7 +28,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (req.url != "/foo") {
set beresp.do_esi = true;
}
View
2  bin/varnishtest/tests/e00027.vtc
@@ -8,7 +8,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/g00002.vtc
@@ -17,7 +17,7 @@ varnish v1 \
-cliok "param.set gzip_memlevel 1" \
-vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/g00003.vtc
@@ -19,7 +19,7 @@ server s1 {
varnish v1 -cliok "param.set http_gzip_support true" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_gunzip = true;
if (req.url == "/foobar") {
set beresp.do_gzip = true;
View
2  bin/varnishtest/tests/g00004.vtc
@@ -19,7 +19,7 @@ server s1 -repeat 2 {
varnish v1 \
-vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = false;
if (req.url == "/gunzip") {
View
2  bin/varnishtest/tests/m00002.vtc
@@ -11,7 +11,7 @@ server s1 {
varnish v1 -vcl+backend {
import std from "${topbuild}/lib/libvmod_std/.libs/libvmod_std.so" ;
- sub vcl_fetch {
+ sub vcl_response {
set beresp.http.rnd1 = std.random(0,1);
set beresp.http.rnd2 = std.random(0,10);
set beresp.http.rnd3 = std.random(8,10);
View
2  bin/varnishtest/tests/m00006.vtc
@@ -21,7 +21,7 @@ varnish v1 -vcl+backend {
sub vcl_miss {
std.collect(bereq.http.baz);
}
- sub vcl_fetch {
+ sub vcl_response {
std.collect(beresp.http.bar);
}
sub vcl_deliver {
View
4 bin/varnishtest/tests/p00005.vtc
@@ -11,7 +11,7 @@ varnish v1 \
-storage "-spersistent,${tmpdir}/_.per,10m" \
-arg "-pban_lurker_sleep=0" \
-vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.ttl = 3s;
}
} -start
@@ -37,7 +37,7 @@ server s1 -wait {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.ttl = 3s;
}
} -start
View
2  bin/varnishtest/tests/p00008.vtc
@@ -18,7 +18,7 @@ varnish v1 \
-arg "-pban_lurker_sleep=0" \
-storage "-sper1=persistent,${tmpdir}/_.per1,10m -sper2=persistent,${tmpdir}/_.per2,10m" \
-vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.storage = "per1";
if (req.url ~ "silo2") {
set beresp.storage = "per2";
View
2  bin/varnishtest/tests/r00251.vtc
@@ -9,7 +9,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.http.Snafu1 =
"zoom" +
regsub(beresp.http.Foomble, "ar", "\0\0") +
View
2  bin/varnishtest/tests/r00318.vtc
@@ -6,7 +6,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
set beresp.do_pass = true;
}
View
2  bin/varnishtest/tests/r00326.vtc
@@ -8,7 +8,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/r00345.vtc
@@ -10,7 +10,7 @@ server s1 {
} -start
varnish v1 -arg "-p debug=+workspace" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (req.url == "/") {
set beresp.do_esi = true;
}
View
2  bin/varnishtest/tests/r00386.vtc
@@ -10,7 +10,7 @@ server s1 {
} -start
varnish v1 -arg "-p debug=+workspace" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (req.url == "/") {
set beresp.do_esi = true;
}
View
2  bin/varnishtest/tests/r00387.vtc
@@ -12,7 +12,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = false;
}
} -start
View
2  bin/varnishtest/tests/r00411.vtc
@@ -17,7 +17,7 @@ varnish v1 -vcl+backend {
return (restart);
}
}
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.status == 303) {
set beresp.ttl = 3m;
set beresp.http.X-Magic-Redirect = "1";
View
2  bin/varnishtest/tests/r00412.vtc
@@ -11,7 +11,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.status == 303) {
set beresp.ttl = 60 s;
set beresp.http.X-Magic-Redirect = "1";
View
2  bin/varnishtest/tests/r00427.vtc
@@ -24,7 +24,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/r00433.vtc
@@ -31,7 +31,7 @@ varnish v1 -vcl+backend {
}
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/r00445.vtc
@@ -10,7 +10,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/r00476.vtc
@@ -16,7 +16,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/r00494.vtc
@@ -9,7 +9,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.http.bar = beresp.http.foo;
remove beresp.http.foo;
}
View
2  bin/varnishtest/tests/r00524.vtc
@@ -18,7 +18,7 @@ varnish v1 -vcl+backend {
sub vcl_recv {
// return (pass);
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -cliok "param.set timeout_idle 60" -start
View
2  bin/varnishtest/tests/r00590.vtc
@@ -60,7 +60,7 @@ varnish v1 -vcl+backend {
sub vcl_recv {
return (pass);
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/r00612.vtc
@@ -36,7 +36,7 @@ varnish v1 -vcl+backend {
sub vcl_recv {
return (pass);
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/r00641.vtc
@@ -15,7 +15,7 @@ varnish v1 -vcl+backend {
sub vcl_recv {
// return (pass);
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -cliok "param.set timeout_idle 60" -start
View
2  bin/varnishtest/tests/r00667.vtc
@@ -16,7 +16,7 @@ server s1 {
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.ttl = 0s;
}
} -start
View
2  bin/varnishtest/tests/r00702.vtc
@@ -6,7 +6,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = false;
}
} -start
View
2  bin/varnishtest/tests/r00704.vtc
@@ -6,7 +6,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = false;
}
} -start
View
2  bin/varnishtest/tests/r00769.vtc
@@ -11,7 +11,7 @@ varnish v1 -vcl+backend {
error 700;
}
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.status = 404;
set beresp.http.X-status = beresp.status;
return (deliver);
View
2  bin/varnishtest/tests/r00801.vtc
@@ -11,7 +11,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_recv { return (pass); }
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = false;
}
} -start
View
2  bin/varnishtest/tests/r00861.vtc
@@ -23,7 +23,7 @@ server s1 {
varnish v1 \
-vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (req.url == "/1" || req.url == "/2") {
set beresp.do_esi = true;
set beresp.do_gzip = true;
View
2  bin/varnishtest/tests/r00873.vtc
@@ -9,7 +9,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
set beresp.do_gzip = true;
}
View
2  bin/varnishtest/tests/r00894.vtc
@@ -6,7 +6,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/r00913.vtc
@@ -7,7 +7,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.http.bar ~ "$") {
set beresp.http.foo = regsub(beresp.http.bar, "$", "XXX");
}
View
2  bin/varnishtest/tests/r00915.vtc
@@ -12,7 +12,7 @@ varnish v1 \
-storage "-spersistent,${tmpdir}/_.per,10m" \
-vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
error(751);
}
} -start
View
2  bin/varnishtest/tests/r00916.vtc
@@ -9,7 +9,7 @@ varnish v1 -errvcl {Symbol not found: 's-1' (expected type BACKEND)} {
backend b { .host = "127.0.0.1"; }
sub s1 {
}
- sub vcl_fetch {
+ sub vcl_response {
if (req.backend == s-1){
set req.backend = s-1;
}
View
2  bin/varnishtest/tests/r00941.vtc
@@ -8,7 +8,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.ttl = 1000s;
}
} -start
View
2  bin/varnishtest/tests/r00942.vtc
@@ -26,7 +26,7 @@ server s1 {
varnish v1 \
-vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = false;
}
}
View
2  bin/varnishtest/tests/r00956.vtc
@@ -6,7 +6,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.ttl = 10s;
set req.http.foo = beresp.ttl;
set req.http.bar = "xxx";
View
2  bin/varnishtest/tests/r00961.vtc
@@ -36,7 +36,7 @@ varnish v1 -vcl+backend {
sub vcl_recv {
return (pass);
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/r00962.vtc
@@ -14,7 +14,7 @@ varnish v1 \
-arg "-pfeature=+wait_silo" \
-storage "-spersistent,${tmpdir}/_.per1,10m -spersistent,${tmpdir}/_.per2,10m" \
-vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.storage = "s0";
}
} -start
View
2  bin/varnishtest/tests/r00972.vtc
@@ -6,7 +6,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = true;
}
} -start
View
2  bin/varnishtest/tests/r01029.vtc
@@ -12,7 +12,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
if (req.url == "/foo") {
set beresp.ttl = 0s;
View
2  bin/varnishtest/tests/r01030.vtc
@@ -20,7 +20,7 @@ varnish v1 -vcl+backend {
}
return (lookup);
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.http.url = req.url;
}
} -start
View
2  bin/varnishtest/tests/r01036.vtc
@@ -8,7 +8,7 @@ server s1 {
} -start
varnish v1 -arg "-smalloc,1M" -arg "-pgzip_level=0" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_stream = false;
set beresp.do_gzip = true;
}
View
2  bin/varnishtest/tests/r01037.vtc
@@ -15,7 +15,7 @@ server s1 {
} -start
varnish v1 -arg "-smalloc,1M" -arg "-pgzip_level=0" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
set beresp.do_gzip = true;
}
View
2  bin/varnishtest/tests/r01038.vtc
@@ -46,7 +46,7 @@ server s1 {
} -start
varnish v1 -arg "-p workspace_backend=8k" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/r01091.vtc
@@ -25,7 +25,7 @@ varnish v1 -vcl+backend {
sub vcl_recv {
set req.backend = f1.backend();
}
- sub vcl_fetch {
+ sub vcl_response {
if(req.restarts < 1) {
set beresp.saintmode = 1h;
return(restart);
View
2  bin/varnishtest/tests/r01092.vtc
@@ -19,7 +19,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start -cliok "param.set esi_syntax 4"
View
2  bin/varnishtest/tests/r01109.vtc
@@ -22,7 +22,7 @@ server s1 {
} -start
varnish v1 -arg "-pfetch_chunksize=4k" -arg "-pgzip_level=0" -arg "-pthread_pool_stack=131072" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (req.url ~ "/test") {
set beresp.do_esi = true;
}
View
2  bin/varnishtest/tests/r01113.vtc
@@ -20,7 +20,7 @@ varnish v1 -vcl+backend {
return(restart);
}
}
- sub vcl_fetch {
+ sub vcl_response {
if (req.url == "/fetch") {
return(restart);
}
View
2  bin/varnishtest/tests/r01123.vtc
@@ -9,7 +9,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
if (req.url == "/") {
set beresp.do_esi = true;
}
View
2  bin/varnishtest/tests/r01157.vtc
@@ -12,7 +12,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_recv { return (pass); }
- sub vcl_fetch { set beresp.do_stream = true; }
+ sub vcl_response { set beresp.do_stream = true; }
} -start
client c1 {
View
2  bin/varnishtest/tests/r01168.vtc
@@ -14,7 +14,7 @@ varnish v1 -vcl+backend {
sub vcl_recv {
rollback;
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
View
2  bin/varnishtest/tests/r01175.vtc
@@ -6,7 +6,7 @@ server s1 {
} -start
varnish v1 -storage "-s test=malloc,1M" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.storage = "test";
}
} -start
View
6 bin/varnishtest/tests/r01184.vtc
@@ -32,7 +32,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
} -start
@@ -64,7 +64,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
}
}
@@ -95,7 +95,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_esi = true;
set beresp.do_gunzip = true;
}
View
2  bin/varnishtest/tests/r01206.vtc
@@ -39,7 +39,7 @@ client c1 {
server s1 -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.do_pass = true;
}
}
View
4 bin/varnishtest/tests/r01253.vtc
@@ -1,4 +1,4 @@
-varnishtest "restarting a pass in vcl_fetch should not panic"
+varnishtest "restarting a pass in vcl_response should not panic"
server s1 {
rxreq
@@ -12,7 +12,7 @@ varnish v1 -vcl+backend {
sub vcl_recv {
return (pass);
}
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.status != 200) {
return (restart);
}
View
2  bin/varnishtest/tests/r01283.vtc
@@ -11,7 +11,7 @@ varnish v1 -arg "-p nuke_limit=0" -storage "-sTransient=malloc,1m" -vcl+backend
error 500;
}
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.storage = "Transient";
}
} -start
View
2  bin/varnishtest/tests/r01284.vtc
@@ -10,7 +10,7 @@ server s1 {
} -start
varnish v1 -arg "-p nuke_limit=0" -storage "-sTransient=malloc,1m" -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.storage = "Transient";
}
} -start
View
2  bin/varnishtest/tests/s00002.vtc
@@ -47,7 +47,7 @@ varnish v1 -vcl {
.initial = 0;
}
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.ttl = 1s;
set beresp.grace = 1m;
}
View
2  bin/varnishtest/tests/s00003.vtc
@@ -16,7 +16,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.ttl = 1s;
set beresp.grace = 10m;
if (beresp.http.foo == "2")
View
2  bin/varnishtest/tests/v00000.vtc
@@ -12,7 +12,7 @@ varnish v1 -vcl+backend {
sub vcl_recv {
set req.grace += 1 s;
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.ttl += 1 m;
set beresp.grace += 1 h;
}
View
2  bin/varnishtest/tests/v00001.vtc
@@ -26,7 +26,7 @@ varnish v1 -vcl+backend {
set bereq.proto = "HTTP/1.2";
set bereq.method = "GET";
}
- sub vcl_fetch {
+ sub vcl_response {
set beresp.http.foobar =
beresp.proto + beresp.response + beresp.status;
set beresp.proto = "HTTP/1.2";
View
2  bin/varnishtest/tests/v00010.vtc
@@ -25,7 +25,7 @@ varnish v1 -storage "-smalloc,1m" -vcl+backend {
import debug from "${topbuild}/lib/libvmod_debug/.libs/libvmod_debug.so";
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.http.panic == "fetch") {
debug.panic("Had Panic header: " + beresp.http.panic);
}
View
6 bin/varnishtest/tests/v00016.vtc
@@ -60,7 +60,7 @@ varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
/* test time and backend comparison */
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.ttl > 1d) {
set beresp.ttl = 1d;
}
@@ -75,12 +75,12 @@ varnish v1 -vcl {
varnish v1 -errvcl {Unknown time unit 'k'. Legal are 's', 'm', 'h' and 'd'} {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch { set obj.ttl = 1. k; }
+ sub vcl_response { set obj.ttl = 1. k; }
}
varnish v1 -errvcl {Expression has type DURATION, expected BOOL} {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch { if (obj.ttl *= 2) { } }
+ sub vcl_response { if (obj.ttl *= 2) { } }
}
varnish v1 -errvcl {Operator > not possible on BACKEND} {
View
18 bin/varnishtest/tests/v00018.vtc
@@ -8,14 +8,14 @@ varnish v1 -vcl {
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch { error beresp.status ; }
+ sub vcl_response { error beresp.status ; }
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_miss { error 100 req.url ; }
sub vcl_pass { error 100 "the butter please" ; }
- sub vcl_fetch { error beresp.status req.url; }
+ sub vcl_response { error beresp.status req.url; }
}
varnish v1 -errvcl {Variable 'server.port' is read only.} {
@@ -25,12 +25,12 @@ varnish v1 -errvcl {Variable 'server.port' is read only.} {
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch { set beresp.ttl /= 2; }
+ sub vcl_response { set beresp.ttl /= 2; }
}
varnish v1 -errvcl {Expected '=' got '>>'} {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch { set beresp.ttl >>= 2; }
+ sub vcl_response { set beresp.ttl >>= 2; }
}
varnish v1 -errvcl {Expected '=' got '+='} {
@@ -61,27 +61,27 @@ varnish v1 -vcl {
varnish v1 -errvcl {Expected '=' got '+='} {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch { set beresp.do_gzip += 1; }
+ sub vcl_response { set beresp.do_gzip += 1; }
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch { set beresp.do_gzip = true; }
+ sub vcl_response { set beresp.do_gzip = true; }
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch { set beresp.do_gzip = false; }
+ sub vcl_response { set beresp.do_gzip = false; }
}
varnish v1 -errvcl {Symbol not found: 'mu' (expected type BOOL):} {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch { set beresp.do_gzip = mu; }
+ sub vcl_response { set beresp.do_gzip = mu; }
}
varnish v1 -errvcl {Only http header variables can be unset.} {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch { unset beresp.do_gzip; }
+ sub vcl_response { unset beresp.do_gzip; }
}
varnish v1 -errvcl {Unknown token '<<' when looking for STRING} {
View
14 bin/varnishtest/tests/v00020.vtc
@@ -24,7 +24,7 @@ varnish v1 -errvcl {Expected an action, 'if', } " sub vcl_recv { { } { "
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch {
+ sub vcl_response {
set beresp.ttl = 1w;
set beresp.ttl *= 1.5;
set beresp.ttl = 1.5 s * 2.5;
@@ -73,20 +73,20 @@ varnish v1 -errvcl {Operator * not possible on type STRING.} {
}
varnish v1 -errvcl {DURATION + INT not possible.} {
- sub vcl_fetch {
+ sub vcl_response {
set req.http.foo = req.grace + beresp.status;
}
}
varnish v1 -errvcl {'!' must be followed by BOOL, found DURATION.} {
- sub vcl_fetch {
+ sub vcl_response {
if (! req.grace) {
}
}
}
varnish v1 -errvcl {Operator + not possible on type BOOL.} {
- sub vcl_fetch {
+ sub vcl_response {
if (beresp.do_gzip + beresp.do_gunzip) {
}
}
@@ -226,7 +226,7 @@ varnish v1 -errvcl {DURATION + STRING not possible.} {
varnish v1 -errvcl {'||' must be followed by BOOL, found DURATION.} {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch {
+ sub vcl_response {
if (req.url || beresp.ttl) {
}
}
@@ -234,7 +234,7 @@ varnish v1 -errvcl {'||' must be followed by BOOL, found DURATION.} {
varnish v1 -errvcl {'&&' must be followed by BOOL, found DURATION.} {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch {
+ sub vcl_response {
if (req.url && beresp.ttl) {
}
}
@@ -242,7 +242,7 @@ varnish v1 -errvcl {'&&' must be followed by BOOL, found DURATION.} {
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
- sub vcl_fetch {
+ sub vcl_response {
if (!req.url) {
}
}
View
2  bin/varnishtest/tests/v00025.vtc
@@ -16,7 +16,7 @@ sub vcl_deliver {
set resp.http.server_port = server.port;
}
-sub vcl_fetch {
+sub vcl_response {
if (req.esi) {
set beresp.http.esi = "yes";
}
View
2  bin/varnishtest/tests/v00032.vtc
@@ -6,7 +6,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.http.has_s0 = storage.s0;
set beresp.http.has_foo = storage.foo;
set beresp.http.has_Transient = storage.Transient;
View
2  bin/varnishtest/tests/v00033.vtc
@@ -10,7 +10,7 @@ server s1 {
varnish v1 -vcl+backend {
- sub vcl_fetch {
+ sub vcl_response {
set beresp.http.foo =
storage.nowhere.free_space +
1 B + 1 KB + 1 MB + 1GB + 1TB;
View
2  etc/zope-plone.vcl
@@ -90,7 +90,7 @@ sub vcl_miss {
# Enforce a minimum TTL, since we can PURGE changed objects actively
# from Zope by using the CacheFu product
-sub vcl_fetch {
+sub vcl_response {
if (beresp.ttl < 3600s) {
set beresp.ttl = 3600s;
}
View
86 lib/libvcl/generate.py
@@ -84,7 +84,7 @@
('hash', ('hash',)),
('miss', ('error', 'restart', 'pass', 'fetch',)),
('hit', ('error', 'restart', 'pass', 'deliver',)),
- ('fetch', ('error', 'restart', 'deliver',)),
+ ('response', ('error', 'restart', 'deliver',)),
('deliver', ('restart', 'deliver',)),
('error', ('restart', 'deliver',)),
('init', ('ok',)),
@@ -208,8 +208,8 @@
),
('req.esi',
'BOOL',
- ( 'recv', 'fetch', 'deliver', 'error',),
- ( 'recv', 'fetch', 'deliver', 'error',),
+ ( 'recv', 'response', 'deliver', 'error',),
+ ( 'recv', 'response', 'deliver', 'error',),
'struct req *'
),
('req.can_gzip',
@@ -238,32 +238,32 @@
),
('bereq.method',
'STRING',
- ( 'pipe', 'pass', 'miss', 'fetch',),
- ( 'pipe', 'pass', 'miss', 'fetch',),
+ ( 'pipe', 'pass', 'miss', 'response',),
+ ( 'pipe', 'pass', 'miss', 'response',),
'const struct req *'
),
('bereq.request',
'STRING',
- ( 'pipe', 'pass', 'miss', 'fetch',),
- ( 'pipe', 'pass', 'miss', 'fetch',),
+ ( 'pipe', 'pass', 'miss', 'response',),
+ ( 'pipe', 'pass', 'miss', 'response',),
'const struct req *'
),
('bereq.url',
'STRING',
- ( 'pipe', 'pass', 'miss', 'fetch',),
- ( 'pipe', 'pass', 'miss', 'fetch',),
+ ( 'pipe', 'pass', 'miss', 'response',),
+ ( 'pipe', 'pass', 'miss', 'response',),
'const struct req *'
),
('bereq.proto',
'STRING',
- ( 'pipe', 'pass', 'miss', 'fetch',),
- ( 'pipe', 'pass', 'miss', 'fetch',),
+ ( 'pipe', 'pass', 'miss', 'response',),
+ ( 'pipe', 'pass', 'miss', 'response',),
'const struct req *'
),
('bereq.http.',
'HEADER',
- ( 'pipe', 'pass', 'miss', 'fetch',),
- ( 'pipe', 'pass', 'miss', 'fetch',),
+ ( 'pipe', 'pass', 'miss', 'response',),
+ ( 'pipe', 'pass', 'miss', 'response',),
'const struct req *'
),
('bereq.connect_timeout',
@@ -286,104 +286,104 @@
),
('beresp.proto',
'STRING',
- ( 'fetch',),
- ( 'fetch',),
+ ( 'response',),
+ ( 'response',),
'const struct req *'
),
('beresp.saintmode',
'DURATION',
( ),
- ( 'fetch',),
+ ( 'response',),
'const struct req *'
),
('beresp.status',
'INT',
- ( 'fetch',),
- ( 'fetch',),
+ ( 'response',),
+ ( 'response',),
'const struct req *'
),
('beresp.response',
'STRING',
- ( 'fetch',),
- ( 'fetch',),
+ ( 'response',),
+ ( 'response',),
'const struct req *'
),
('beresp.http.',
'HEADER',
- ( 'fetch',),
- ( 'fetch',),
+ ( 'response',),
+ ( 'response',),
'const struct req *'
),
('beresp.do_esi',
'BOOL',
- ( 'fetch',),
- ( 'fetch',),
+ ( 'response',),
+ ( 'response',),
'const struct req *'