Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3B6217F69 for ; Sun, 2 Nov 2014 21:01:56 +0000 (UTC) Received: (qmail 28024 invoked by uid 500); 2 Nov 2014 21:01:56 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 27946 invoked by uid 500); 2 Nov 2014 21:01:56 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 27937 invoked by uid 99); 2 Nov 2014 21:01:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2014 21:01:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2014 21:01:55 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A774923889FA; Sun, 2 Nov 2014 21:01:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1636189 - /httpd/httpd/trunk/docs/manual/expr.xml Date: Sun, 02 Nov 2014 21:01:05 -0000 To: cvs@httpd.apache.org From: covener@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141102210105.A774923889FA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: covener Date: Sun Nov 2 21:01:05 2014 New Revision: 1636189 URL: http://svn.apache.org/r1636189 Log: 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) Modified: httpd/httpd/trunk/docs/manual/expr.xml Modified: httpd/httpd/trunk/docs/manual/expr.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/expr.xml?rev=1636189&r1=1636188&r2=1636189&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/expr.xml (original) +++ httpd/httpd/trunk/docs/manual/expr.xml Sun Nov 2 21:01:05 2014 @@ -518,7 +518,8 @@ listfunction ::= listfuncname "( 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 "( <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 "( NameAlternative Description -in in - string contained in string list + string contained in wordlist /regexp/ m#regexp# Regular expression (the second form allows different