From: Eric Covener Date: Sun, 2 Nov 2014 21:01:05 +0000 (+0000) Subject: add a -in wordlist example, change 'string list' to wordlist so you can jump to the... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12ec286d1bde4ee639f808eaab6fd2f515cb0ed6;p=thirdparty%2Fapache%2Fhttpd.git add a -in wordlist example, change 'string list' to wordlist so you can jump to the grammar. 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 --- diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml index cdd1aca8503..5bb6f5ee240 100644 --- a/docs/manual/expr.xml +++ b/docs/manual/expr.xml @@ -518,7 +518,8 @@ listfunction ::= listfuncname "(" word ")" Hash the string using SHA1, then encode the hash with hexadecimal encoding file - Read contents from a fileyes + Read contents from a file (including line endings, when present) + yes filesize Return size of a file (or 0 if file does not exist or is not regular file)yes @@ -573,6 +574,13 @@ listfunction ::= listfuncname "(" word ")" <Directory "/foo/bar/business"> Require expr %{TIME_HOUR} -gt 9 && %{TIME_HOUR} -lt 17 </Directory> + +# Check a HTTP header for a list of values +<If "%{HTTP:X-example-header} in { 'foo', 'bar', 'baz'}"> + Header set matched true +</If> + + @@ -585,7 +593,7 @@ listfunction ::= listfuncname "(" word ")" NameAlternative Description -in in - string contained in string list + string contained in wordlist /regexp/ m#regexp# Regular expression (the second form allows different