]> granicus.if.org Git - apache/commitdiff
add a -in wordlist example, change 'string list' to wordlist so you can jump to the...
authorEric Covener <covener@apache.org>
Sun, 2 Nov 2014 21:01:05 +0000 (21:01 +0000)
committerEric Covener <covener@apache.org>
Sun, 2 Nov 2014 21:01:05 +0000 (21:01 +0000)
leave a hint about line endings (uncommitted change in my tree)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1636189 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/expr.xml

index cdd1aca850362ba7fc96d986e163ef644bc43cc6..5bb6f5ee240408c3940bbe761a83350926913b9f 100644 (file)
@@ -518,7 +518,8 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</strong>"
         <td>Hash the string using SHA1, then encode the hash with hexadecimal
             encoding</td><td></td></tr>
     <tr><td><code>file</code></td>
-        <td>Read contents from a file</td><td>yes</td></tr>
+        <td>Read contents from a file (including line endings, when present)
+        </td><td>yes</td></tr>
     <tr><td><code>filesize</code></td>
         <td>Return size of a file (or 0 if file does not exist or is not
             regular file)</td><td>yes</td></tr>
@@ -573,6 +574,13 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</strong>"
 &lt;Directory "/foo/bar/business"&gt;
     Require expr %{TIME_HOUR} -gt 9 &amp;&amp; %{TIME_HOUR} -lt 17
 &lt;/Directory&gt;     
+
+# Check a HTTP header for a list of values
+&lt;If "%{HTTP:X-example-header} in { 'foo', 'bar', 'baz'}"&gt;
+    Header set matched true
+&lt;/If&gt;
+
+
        </highlight>
 </section>
 
@@ -585,7 +593,7 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</strong>"
     <tr><th>Name</th><th>Alternative</th> <th>Description</th></tr>
     <tr><td><code>-in</code></td>
         <td><code>in</code></td>
-        <td>string contained in string list</td></tr>
+        <td>string contained in wordlist</td></tr>
     <tr><td><code>/regexp/</code></td>
         <td><code>m#regexp#</code></td>
         <td>Regular expression (the second form allows different