Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
94af15e8
Commit
94af15e8
authored
Jan 26, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Mention the VCL standalone return statement
Salvaged from #3503
parent
f368e540
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
vcl.rst
doc/sphinx/reference/vcl.rst
+12
-1
No files found.
doc/sphinx/reference/vcl.rst
View file @
94af15e8
...
...
@@ -434,6 +434,17 @@ The ongoing ``vcl_*`` subroutine execution ends when a
The *<action>* specifies how execution should proceed. The context
defines which actions are available.
It is possible to exit a subroutine that is not part of the built-in ones
using a simple ``return`` statement without specifying an action. It exits
the subroutine without transitioning to a different state::
sub filter_cookies {
if (!req.http.cookie) {
return;
}
# complex cookie filtering
}
Multiple subroutines
~~~~~~~~~~~~~~~~~~~~
...
...
@@ -538,7 +549,7 @@ HISTORY
VCL was developed by Poul-Henning Kamp in cooperation with Verdens
Gang AS, Redpill Linpro and Varnish Software. This manual page is
written by Per Buer, Poul-Henning Kamp, Martin Blix Grydeland,
Kristian Lyngstøl, Lasse Karstensen and
possibly
others.
Kristian Lyngstøl, Lasse Karstensen and others.
COPYRIGHT
=========
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment