Commit 979dae1c authored by Per Andreas Buer's avatar Per Andreas Buer

cleanup + add return()

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5168 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b64bb9da
...@@ -290,7 +290,7 @@ There are a number of special subroutines which hook into the Varnish ...@@ -290,7 +290,7 @@ There are a number of special subroutines which hook into the Varnish
workflow. These subroutines may inspect and manipulate HTTP headers workflow. These subroutines may inspect and manipulate HTTP headers
and various other aspects of each request, and to a certain extent and various other aspects of each request, and to a certain extent
decide how the request should be handled. Each subroutine terminates decide how the request should be handled. Each subroutine terminates
by calling one of a small number of keywords which indicates the by calling one of a small number of keywords which indicates the
desired outcome. desired outcome.
vcl_recv vcl_recv
...@@ -298,8 +298,9 @@ vcl_recv ...@@ -298,8 +298,9 @@ vcl_recv
been received and parsed. Its purpose is to decide whether or not 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 serve the request, how to do it, and, if applicable, which backend
to use. to use.
The vcl_recv subroutine may terminate with one of the following keywords: The vcl_recv subroutine may terminate with calling return() on one of
the following keywords:
error code [reason] error code [reason]
Return the specified error code to the client and abandon the request. Return the specified error code to the client and abandon the request.
...@@ -320,8 +321,9 @@ vcl_pipe ...@@ -320,8 +321,9 @@ vcl_pipe
on to the backend, and any further data from either client or on to the backend, and any further data from either client or
backend is passed on unaltered until either end closes the backend is passed on unaltered until either end closes the
connection. connection.
The vcl_pipe subroutine may terminate with one of the following keywords: The vcl_pipe subroutine may terminate with calling return() with one of
the following keywords:
error code [reason] error code [reason]
Return the specified error code to the client and abandon the request. Return the specified error code to the client and abandon the request.
...@@ -334,9 +336,10 @@ vcl_pass ...@@ -334,9 +336,10 @@ vcl_pass
on to the backend, and the backend's response is passed on to the on to the backend, and the backend's response is passed on to the
client, but is not entered into the cache. Subsequent requests sub‐ client, but is not entered into the cache. Subsequent requests sub‐
mitted over the same client connection are handled normally. mitted over the same client connection are handled normally.
The vcl_pass subroutine may terminate with one of the following keywords: The vcl_recv subroutine may terminate with calling return() with one of
the following keywords:
error code [reason] error code [reason]
Return the specified error code to the client and abandon the request. Return the specified error code to the client and abandon the request.
...@@ -345,8 +348,10 @@ vcl_pass ...@@ -345,8 +348,10 @@ vcl_pass
vcl_hash vcl_hash
Use req.hash += req.http.Cookie or similar to include the Cookie HTTP Use req.hash += req.http.Cookie or similar to include the Cookie HTTP
header in the hash string. The vcl_hash subroutine may terminate with header in the hash string.
one of the following keywords:
The vcl_hash subroutine may terminate with calling return() with one of
the following keywords:
hash hash
Proceed. Proceed.
...@@ -354,7 +359,8 @@ vcl_hash ...@@ -354,7 +359,8 @@ vcl_hash
vcl_hit vcl_hit
Called after a cache lookup if the requested document was found in the cache. Called after a cache lookup if the requested document was found in the cache.
The vcl_hit subroutine may terminate with one of the following keywords: The vcl_hit subroutine may terminate with calling return() with one of
the following keywords:
error code [reason] error code [reason]
Return the specified error code to the client and abandon the request. Return the specified error code to the client and abandon the request.
...@@ -371,7 +377,8 @@ vcl_miss ...@@ -371,7 +377,8 @@ vcl_miss
in the cache. Its purpose is to decide whether or not to attempt to in the cache. Its purpose is to decide whether or not to attempt to
retrieve the document from the backend, and which backend to use. retrieve the document from the backend, and which backend to use.
The vcl_miss subroutine may terminate with one of the following keywords: The vcl_miss subroutine may terminate with calling return() with one of
the following keywords:
error code [reason] error code [reason]
Return the specified error code to the client and abandon the request. Return the specified error code to the client and abandon the request.
...@@ -385,8 +392,9 @@ vcl_miss ...@@ -385,8 +392,9 @@ vcl_miss
vcl_fetch vcl_fetch
Called after a document has been successfully retrieved from the backend. Called after a document has been successfully retrieved from the backend.
The vcl_fetch subroutine may terminate with one of the following keywords: The vcl_fetch subroutine may terminate with calling return() with
one of the following keywords:
error code [reason] error code [reason]
Return the specified error code to the client and abandon the request. Return the specified error code to the client and abandon the request.
......
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