You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2014/12/05 14:28:31 UTC

svn commit: r1643268 - /httpd/httpd/branches/2.4.x/docs/manual/expr.xml

Author: covener
Date: Fri Dec  5 13:28:31 2014
New Revision: 1643268

URL: http://svn.apache.org/viewvc?rev=1643268&view=rev
Log:
Merge r1643267 from trunk:

function examples, other flavor of function examples. replace() example


Modified:
    httpd/httpd/branches/2.4.x/docs/manual/expr.xml

Modified: httpd/httpd/branches/2.4.x/docs/manual/expr.xml
URL: http://svn.apache.org/r1643267
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/expr.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/expr.xml Fri Dec  5 13:28:31 2014
@@ -569,6 +569,17 @@ listfunction ::= listfuncname "<strong>(
 &lt;/If&gt;
 &lt;/Directory&gt;
 
+# Function examples in boolean context
+&lt;If "md5('foo') == 'acbd18db4cc2f85cedef654fccc4a4d8'"&gt;
+  Header set checksum-matched true
+&lt;/If&gt;
+&lt;If "md5('foo') == replace('md5:XXXd18db4cc2f85cedef654fccc4a4d8', 'md5:XXX', 'acb')&gt;
+  Header set checksum-matched-2 true
+&lt;/If&gt;
+
+# Function example in string context
+Header set foo-checksum "expr=%{md5:foo}"
+
 	</highlight>
 </section>