Commit 3dd3f56b authored by Per Buer's avatar Per Buer

rework vars

parent 54df9be7
...@@ -8,16 +8,21 @@ object, stored in cache. ...@@ -8,16 +8,21 @@ object, stored in cache.
In VCL you should know the following structures. In VCL you should know the following structures.
.. XXX: Needs verification
*req* *req*
The request object. When Varnish has received the request the req object is The request object. When Varnish has received the request the req object is
created and populated. Most of the work you do in vcl_recv you created and populated. Most of the work you do in vcl_recv you
do on or with the req object. do on or with the req object.
*bereq*
The backend request object.
*beresp* *beresp*
The backend respons object. It contains the headers of the object The backend respons object. It contains the headers of the object
comming from the backend. Most of the work you do in vcl_fetch you comming from the backend. Most of the work you do in vcl_fetch you
do on the beresp object. do on the beresp object.
*obj* *resp*
The cached object. Mostly a read only object that resides in memory. The cached object. Mostly a read only object that resides in memory.
obj.ttl is writable, the rest is read only. resp.ttl is writable, the rest is read only.
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