Commit 7faa4316 authored by Nils Goroll's avatar Nils Goroll

auto-generated docs update

parent fe2da4d4
...@@ -6,26 +6,17 @@ ...@@ -6,26 +6,17 @@
.. role:: ref(emphasis) .. role:: ref(emphasis)
.. _vmod_selector(3):
============= =============
vmod_selector VMOD selector
============= =============
--------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------
Varnish Module for matching strings associated with backends, regexen and other strings Varnish Module for matching strings associated with backends , regexen and other strings
--------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------
:Manual section: 3 :Manual section: 3
.. _VMOD re2: https://code.uplex.de/uplex-varnish/libvmod-re2 .. _VMOD re2: https://code.uplex.de/uplex-varnish/libvmod-re2
SYNOPSIS SYNOPSIS
======== ========
...@@ -314,11 +305,10 @@ or the longest match, and so on:: ...@@ -314,11 +305,10 @@ or the longest match, and so on::
# bar_backend for /foo/bar/quux # bar_backend for /foo/bar/quux
# foo_backend for /foo/quux # foo_backend for /foo/quux
.. _vmod_selector.set:
.. _obj_set: new xset = selector.set(BOOL case_sensitive=1)
----------------------------------------------
new xset = set(BOOL case_sensitive=1)
-------------------------------------
Create a set object. When ``case_sensitive`` is ``false``, matches Create a set object. When ``case_sensitive`` is ``false``, matches
using the ``.match()`` and ``.hasprefix()`` methods are using the ``.match()`` and ``.hasprefix()`` methods are
...@@ -335,10 +325,10 @@ Example:: ...@@ -335,10 +325,10 @@ Example::
# ... # ...
} }
.. _func_set.add: .. _vmod_selector.set.add:
set.add(...) VOID xset.add(STRING, STRING string, STRING regex, BACKEND backend)
------------ -------------------------------------------------------------------
:: ::
...@@ -384,8 +374,7 @@ Example:: ...@@ -384,8 +374,7 @@ Example::
regex="^/quux/([^/]+)/"); regex="^/quux/([^/]+)/");
} }
.. _vmod_selector.set.create_stats:
.. _func_set.create_stats:
VOID xset.create_stats() VOID xset.create_stats()
------------------------ ------------------------
...@@ -417,8 +406,7 @@ Example:: ...@@ -417,8 +406,7 @@ Example::
myset.create_stats(); myset.create_stats();
} }
.. _vmod_selector.set.match:
.. _func_set.match:
BOOL xset.match(STRING) BOOL xset.match(STRING)
----------------------- -----------------------
...@@ -442,8 +430,7 @@ Example:: ...@@ -442,8 +430,7 @@ Example::
call do_on_match; call do_on_match;
} }
.. _vmod_selector.set.hasprefix:
.. _func_set.hasprefix:
BOOL xset.hasprefix(STRING) BOOL xset.hasprefix(STRING)
--------------------------- ---------------------------
...@@ -461,8 +448,7 @@ Example:: ...@@ -461,8 +448,7 @@ Example::
call do_if_prefix_matched; call do_if_prefix_matched;
} }
.. _vmod_selector.set.nmatches:
.. _func_set.nmatches:
INT xset.nmatches() INT xset.nmatches()
------------------- -------------------
...@@ -495,8 +481,7 @@ Example:: ...@@ -495,8 +481,7 @@ Example::
set bereq.backend = myset.backend(select=UNIQUE); set bereq.backend = myset.backend(select=UNIQUE);
} }
.. _vmod_selector.set.matched:
.. _func_set.matched:
BOOL xset.matched(INT) BOOL xset.matched(INT)
---------------------- ----------------------
...@@ -526,8 +511,7 @@ Example:: ...@@ -526,8 +511,7 @@ Example::
} }
} }
.. _vmod_selector.set.which:
.. _func_set.which:
INT xset.which(ENUM select) INT xset.which(ENUM select)
--------------------------- ---------------------------
...@@ -567,8 +551,7 @@ Example:: ...@@ -567,8 +551,7 @@ Example::
} }
} }
.. _vmod_selector.set.element:
.. _func_set.element:
STRING xset.element(INT n, ENUM select) STRING xset.element(INT n, ENUM select)
--------------------------------------- ---------------------------------------
...@@ -609,8 +592,7 @@ Example:: ...@@ -609,8 +592,7 @@ Example::
set resp.http.Location = "http://other.com" + myset.element(); set resp.http.Location = "http://other.com" + myset.element();
} }
.. _vmod_selector.set.backend:
.. _func_set.backend:
BACKEND xset.backend(INT n, ENUM select) BACKEND xset.backend(INT n, ENUM select)
---------------------------------------- ----------------------------------------
...@@ -642,8 +624,7 @@ Example:: ...@@ -642,8 +624,7 @@ Example::
set bereq.backend = myset.backend(select=LONGEST); set bereq.backend = myset.backend(select=LONGEST);
} }
.. _vmod_selector.set.string:
.. _func_set.string:
STRING xset.string(INT n, ENUM select) STRING xset.string(INT n, ENUM select)
-------------------------------------- --------------------------------------
...@@ -672,8 +653,7 @@ Example:: ...@@ -672,8 +653,7 @@ Example::
set req.url = myset.string(); set req.url = myset.string();
} }
.. _vmod_selector.set.re_match:
.. _func_set.re_match:
BOOL xset.re_match(STRING subject, INT n, ENUM select) BOOL xset.re_match(STRING subject, INT n, ENUM select)
------------------------------------------------------ ------------------------------------------------------
...@@ -721,11 +701,10 @@ Example:: ...@@ -721,11 +701,10 @@ Example::
} }
} }
.. _vmod_selector.set.sub:
.. _func_set.sub: STRING xset.sub(STRING str, STRING sub, BOOL all, INT n, ENUM select)
---------------------------------------------------------------------
set.sub(...)
------------
:: ::
...@@ -782,19 +761,14 @@ Example:: ...@@ -782,19 +761,14 @@ Example::
# /foo/bar/1/2/* is rewritten as /foo/bar/2/1/* # /foo/bar/1/2/* is rewritten as /foo/bar/2/1/*
# /foo/bar/baz/1/2/* is rewritten as /foo/bar/baz/2/1/* # /foo/bar/baz/1/2/* is rewritten as /foo/bar/baz/2/1/*
.. _vmod_selector.set.debug:
.. _func_set.debug:
STRING xset.debug() STRING xset.debug()
------------------- -------------------
Intentionally not documented. Intentionally not documented.
.. _vmod_selector.version:
.. _func_version:
STRING version() STRING version()
---------------- ----------------
...@@ -937,7 +911,6 @@ SEE ALSO ...@@ -937,7 +911,6 @@ SEE ALSO
* VMOD source repository: https://code.uplex.de/uplex-varnish/libvmod-selector * VMOD source repository: https://code.uplex.de/uplex-varnish/libvmod-selector
* `VMOD re2`_: https://code.uplex.de/uplex-varnish/libvmod-re2 * `VMOD re2`_: https://code.uplex.de/uplex-varnish/libvmod-re2
COPYRIGHT COPYRIGHT
========= =========
......
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