From 9cccbc06abae2a20849d37319df0f119e743f411 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Sun, 2 Nov 2014 21:01:55 +0000 Subject: [PATCH] Merge r1636189 from trunk: 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/branches/2.4.x@1636190 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/expr.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml index 3955a97a60..8364b0f8bc 100644 --- a/docs/manual/expr.xml +++ b/docs/manual/expr.xml @@ -498,7 +498,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 @@ -549,6 +550,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> + + @@ -561,7 +569,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 -- 2.50.1