[master] 349256d Sync with vmod.vcc

Federico G. Schwindt fgsch at lodoss.net
Mon Feb 24 17:09:06 CET 2014


commit 349256d65a7b908cdf986bfc53b7acd4ab1b3918
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Mon Feb 24 16:08:29 2014 +0000

    Sync with vmod.vcc

diff --git a/doc/sphinx/reference/vmod_std.rst b/doc/sphinx/reference/vmod_std.rst
index 36a2678..41c38e6 100644
--- a/doc/sphinx/reference/vmod_std.rst
+++ b/doc/sphinx/reference/vmod_std.rst
@@ -23,7 +23,7 @@ DESCRIPTION
 Vmod_std contains basic functions which are part and parcel of Varnish,
 but which for reasons of architecture fit better in a VMOD.
 
-One specific class of functions in vmod_std is the conversions functions
+One particular class of functions in vmod_std is the conversions functions
 which all have the form::
 
 	TYPE type(STRING, TYPE)
@@ -127,9 +127,10 @@ duration
 Prototype
 	DURATION duration(STRING s, DURATION fallback)
 Description
-	Converts the string *s* to seconds. *s* can be quantified with
-	the usual s (seconds), m (minutes), h (hours), d (days) and w
-	(weeks) units. If *s* fails to parse, *fallback* will be returned.
+	Converts the string *s* to seconds. *s* must be quantified
+	with ms (milliseconds), s (seconds), m (minutes), h (hours),
+	d (days) or w (weeks) units. If *s* fails to parse,
+	*fallback* will be returned.
 Example
 	set beresp.ttl = std.duration("1w", 3600s);
 
@@ -154,6 +155,22 @@ Description
 Example
 	if (std.ip(req.http.X-forwarded-for, "0.0.0.0") ~ my_acl) { ... }
 
+healthy
+-------
+Prototype
+	BOOL healthy(BACKEND backend)
+ 
+Description
+	Returns true if the backend is healthy.
+
+port
+----
+Prototype
+	INT port(IP ip)
+
+Description
+	Returns the port number of an IP address.
+
 
 SEE ALSO
 ========



More information about the varnish-commit mailing list