Skip to content
Permalink
Browse files

improve the vcl(label) documentation

  • Loading branch information...
nigoroll committed Nov 13, 2019
1 parent 525ff0e commit 2c8aefc3fe9d6982a1a1d3939a7121abc95c13ea
Showing with 8 additions and 2 deletions.
  1. +8 −2 doc/sphinx/users-guide/vcl-built-in-subs.rst
@@ -107,8 +107,14 @@ of the following keywords:
:ref:`vcl_hash` to :ref:`vcl_purge`.

``vcl(label)``
Switch to vcl labelled *label*. This will continue vcl processing
in this vcl's :ref:`vcl_recv` as if it was the active vcl.
Switch to vcl labelled *label*.

This will roll back the request as if ``std.rollback(req)`` was
called and continue vcl processing in :ref:`vcl_recv` of the vcl
labelled *label* as if it was the active vcl.

The ``vcl(label)`` return is only valid while the ``req.restarts``
count is zero and if used from the active vcl.

See the :ref:`ref_cli_vcl_label` command.

0 comments on commit 2c8aefc

Please sign in to comment.
You can’t perform that action at this time.