Commit 13b3b902 authored by Geoff Simmons's avatar Geoff Simmons

Update README formatting.

parent e13017aa
...@@ -308,7 +308,7 @@ or the longest match, and so on:: ...@@ -308,7 +308,7 @@ 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: .. _selector.set():
new xset = selector.set(BOOL case_sensitive=1) new xset = selector.set(BOOL case_sensitive=1)
---------------------------------------------- ----------------------------------------------
...@@ -328,7 +328,7 @@ Example:: ...@@ -328,7 +328,7 @@ Example::
# ... # ...
} }
.. _vmod_selector.set.add: .. _xset.add():
VOID xset.add(STRING, [STRING string], [STRING regex], [BACKEND backend], [INT integer]) VOID xset.add(STRING, [STRING string], [STRING regex], [BACKEND backend], [INT integer])
---------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------
...@@ -379,7 +379,7 @@ Example:: ...@@ -379,7 +379,7 @@ Example::
regex="^/quux/([^/]+)/"); regex="^/quux/([^/]+)/");
} }
.. _vmod_selector.set.create_stats: .. _xset.create_stats():
VOID xset.create_stats() VOID xset.create_stats()
------------------------ ------------------------
...@@ -411,7 +411,7 @@ Example:: ...@@ -411,7 +411,7 @@ Example::
myset.create_stats(); myset.create_stats();
} }
.. _vmod_selector.set.match: .. _xset.match():
BOOL xset.match(STRING) BOOL xset.match(STRING)
----------------------- -----------------------
...@@ -435,7 +435,7 @@ Example:: ...@@ -435,7 +435,7 @@ Example::
call do_on_match; call do_on_match;
} }
.. _vmod_selector.set.hasprefix: .. _xset.hasprefix():
BOOL xset.hasprefix(STRING) BOOL xset.hasprefix(STRING)
--------------------------- ---------------------------
...@@ -453,7 +453,7 @@ Example:: ...@@ -453,7 +453,7 @@ Example::
call do_if_prefix_matched; call do_if_prefix_matched;
} }
.. _vmod_selector.set.nmatches: .. _xset.nmatches():
INT xset.nmatches() INT xset.nmatches()
------------------- -------------------
...@@ -486,7 +486,7 @@ Example:: ...@@ -486,7 +486,7 @@ Example::
set bereq.backend = myset.backend(select=UNIQUE); set bereq.backend = myset.backend(select=UNIQUE);
} }
.. _vmod_selector.set.matched: .. _xset.matched():
BOOL xset.matched(INT) BOOL xset.matched(INT)
---------------------- ----------------------
...@@ -516,7 +516,7 @@ Example:: ...@@ -516,7 +516,7 @@ Example::
} }
} }
.. _vmod_selector.set.which: .. _xset.which():
INT xset.which(ENUM select) INT xset.which(ENUM select)
--------------------------- ---------------------------
...@@ -556,7 +556,7 @@ Example:: ...@@ -556,7 +556,7 @@ Example::
} }
} }
.. _vmod_selector.set.element: .. _xset.element():
STRING xset.element(INT n, ENUM select) STRING xset.element(INT n, ENUM select)
--------------------------------------- ---------------------------------------
...@@ -597,7 +597,7 @@ Example:: ...@@ -597,7 +597,7 @@ Example::
set resp.http.Location = "http://other.com" + myset.element(); set resp.http.Location = "http://other.com" + myset.element();
} }
.. _vmod_selector.set.backend: .. _xset.backend():
BACKEND xset.backend(INT n, ENUM select) BACKEND xset.backend(INT n, ENUM select)
---------------------------------------- ----------------------------------------
...@@ -629,7 +629,7 @@ Example:: ...@@ -629,7 +629,7 @@ Example::
set bereq.backend = myset.backend(select=LONGEST); set bereq.backend = myset.backend(select=LONGEST);
} }
.. _vmod_selector.set.string: .. _xset.string():
STRING xset.string(INT n, ENUM select) STRING xset.string(INT n, ENUM select)
-------------------------------------- --------------------------------------
...@@ -658,7 +658,7 @@ Example:: ...@@ -658,7 +658,7 @@ Example::
set req.url = myset.string(); set req.url = myset.string();
} }
.. _vmod_selector.set.integer: .. _xset.integer():
INT xset.integer(INT n, ENUM select) INT xset.integer(INT n, ENUM select)
------------------------------------ ------------------------------------
...@@ -705,7 +705,7 @@ Example:: ...@@ -705,7 +705,7 @@ Example::
} }
} }
.. _vmod_selector.set.re_match: .. _xset.re_match():
BOOL xset.re_match(STRING subject, INT n, ENUM select) BOOL xset.re_match(STRING subject, INT n, ENUM select)
------------------------------------------------------ ------------------------------------------------------
...@@ -753,7 +753,7 @@ Example:: ...@@ -753,7 +753,7 @@ Example::
} }
} }
.. _vmod_selector.set.sub: .. _xset.sub():
STRING xset.sub(STRING str, STRING sub, BOOL all, INT n, ENUM select) STRING xset.sub(STRING str, STRING sub, BOOL all, INT n, ENUM select)
--------------------------------------------------------------------- ---------------------------------------------------------------------
...@@ -813,14 +813,14 @@ Example:: ...@@ -813,14 +813,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: .. _xset.debug():
STRING xset.debug() STRING xset.debug()
------------------- -------------------
Intentionally not documented. Intentionally not documented.
.. _vmod_selector.version: .. _selector.version():
STRING version() STRING version()
---------------- ----------------
......
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