Commit fbc9e698 authored by Per Buer's avatar Per Buer

Removed the subs chapter.

It's in it's own file now, based on the VCL manpage.
parent 214317ae
......@@ -16,7 +16,7 @@ our tutorial - :ref:`tutorial-index`.
Contents:
.. toctree::
:maxdepth: 2
:maxdepth: 1
installation/index.rst
tutorial/index.rst
......@@ -30,6 +30,3 @@ Indices and tables
* :ref:`genindex`
* :ref:`search`
$Id$
vcl_recv
~~~~~~~~
vcl_recv (yes, we're skimpy with characters, it's Unix) is called at
the beginning of a request, after the complete request has been
received and parsed. Its purpose is to decide whether or not to serve
the request, how to do it, and, if applicable, which backend to use.
In vcl_recv you can also alter the request. Typically you can alter
the cookies and add and remove request headers.
Note that in vcl_recv only the request object, req is available.
vcl_fetch
~~~~~~~~~
vcl_fetch is called *after* a document has been successfully retrieved
from the backend. Normal tasks her are to alter the response headers,
trigger ESI processing, try alternate backend servers in case the
request failed.
In vcl_fetch you still have the request object, req, available. There
is also a *backend response*, beresp. beresp will contain the HTTP
headers from the backend.
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