]> granicus.if.org Git - apache/commitdiff
Merge r1643267 from trunk:
authorEric Covener <covener@apache.org>
Fri, 5 Dec 2014 13:28:31 +0000 (13:28 +0000)
committerEric Covener <covener@apache.org>
Fri, 5 Dec 2014 13:28:31 +0000 (13:28 +0000)
function examples, other flavor of function examples. replace() example

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1643268 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/expr.xml

index 033e56c7b03158b61b2edbc165f5eb60ac8e8129..172ff0d2798fd6967f8ea7d8995bb631ea2168fe 100644 (file)
@@ -569,6 +569,17 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</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>