Commit a7409ba1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make bereq. available from vcl_fetch()


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2186 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 1ee9c6cd
...@@ -284,7 +284,7 @@ DOT label="fetch from backend\n(find obj.ttl)" ...@@ -284,7 +284,7 @@ DOT label="fetch from backend\n(find obj.ttl)"
DOT ] DOT ]
DOT vcl_fetch [ DOT vcl_fetch [
DOT shape=record DOT shape=record
DOT label="vcl_fetch()|req.\nobj." DOT label="vcl_fetch()|req.\nobj.\nbereq."
DOT ] DOT ]
DOT fetch -> vcl_fetch [style=bold,color=blue,weight=2] DOT fetch -> vcl_fetch [style=bold,color=blue,weight=2]
DOT fetch_pass [ DOT fetch_pass [
......
...@@ -101,22 +101,22 @@ set spobj { ...@@ -101,22 +101,22 @@ set spobj {
# Request sent to backend # Request sent to backend
{ bereq.request { bereq.request
RW STRING RW STRING
{ pipe pass miss } { pipe pass miss fetch }
"const struct sess *" "const struct sess *"
} }
{ bereq.url { bereq.url
RW STRING RW STRING
{ pipe pass miss } { pipe pass miss fetch }
"const struct sess *" "const struct sess *"
} }
{ bereq.proto { bereq.proto
RW STRING RW STRING
{ pipe pass miss } { pipe pass miss fetch }
"const struct sess *" "const struct sess *"
} }
{ bereq.http. { bereq.http.
RW HDR_BEREQ RW HDR_BEREQ
{ pipe pass miss } { pipe pass miss fetch }
"const struct sess *" "const struct sess *"
} }
......
...@@ -110,28 +110,28 @@ struct var vcc_vars[] = { ...@@ -110,28 +110,28 @@ struct var vcc_vars[] = {
"VRT_l_bereq_request(sp, ", "VRT_l_bereq_request(sp, ",
V_RW, V_RW,
0, 0,
VCL_MET_PIPE | VCL_MET_PASS | VCL_MET_MISS VCL_MET_PIPE | VCL_MET_PASS | VCL_MET_MISS | VCL_MET_FETCH
}, },
{ "bereq.url", STRING, 9, { "bereq.url", STRING, 9,
"VRT_r_bereq_url(sp)", "VRT_r_bereq_url(sp)",
"VRT_l_bereq_url(sp, ", "VRT_l_bereq_url(sp, ",
V_RW, V_RW,
0, 0,
VCL_MET_PIPE | VCL_MET_PASS | VCL_MET_MISS VCL_MET_PIPE | VCL_MET_PASS | VCL_MET_MISS | VCL_MET_FETCH
}, },
{ "bereq.proto", STRING, 11, { "bereq.proto", STRING, 11,
"VRT_r_bereq_proto(sp)", "VRT_r_bereq_proto(sp)",
"VRT_l_bereq_proto(sp, ", "VRT_l_bereq_proto(sp, ",
V_RW, V_RW,
0, 0,
VCL_MET_PIPE | VCL_MET_PASS | VCL_MET_MISS VCL_MET_PIPE | VCL_MET_PASS | VCL_MET_MISS | VCL_MET_FETCH
}, },
{ "bereq.http.", HEADER, 11, { "bereq.http.", HEADER, 11,
"VRT_r_bereq_http_(sp)", "VRT_r_bereq_http_(sp)",
"VRT_l_bereq_http_(sp, ", "VRT_l_bereq_http_(sp, ",
V_RW, V_RW,
"HDR_BEREQ", "HDR_BEREQ",
VCL_MET_PIPE | VCL_MET_PASS | VCL_MET_MISS VCL_MET_PIPE | VCL_MET_PASS | VCL_MET_MISS | VCL_MET_FETCH
}, },
{ "obj.proto", STRING, 9, { "obj.proto", STRING, 9,
"VRT_r_obj_proto(sp)", "VRT_r_obj_proto(sp)",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment