Commit cf0a7cc3 authored by Nils Goroll's avatar Nils Goroll

rst fix

parent fe5a286c
Pipeline #309 skipped
......@@ -21,7 +21,8 @@ Description
The "testable" random generator in varnishd is used, which
enables deterministic tests to be run (See: d00004.vtc).
Example
Example::
new vdir = directors.random();
$Method VOID .add_backend(BACKEND backend, REAL weight,
......@@ -61,7 +62,8 @@ Description
response (headers and body) to scan with the *weight_update*
regular expression.
Example
Example::
vdir.add_backend(backend1, 10.0,
"^X-Weight: *(\d+\.\d+)", "/get-weight.php")
vdir.add_backend(backend2, 2.0,
......@@ -71,7 +73,8 @@ $Method VOID .remove_backend(BACKEND backend)
Description
Remove a backend from the director.
Example
Example::
vdir.remove_backend(backend1);
vdir.remove_backend(backend2);
......
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