From: Eric Covener Date: Thu, 2 Feb 2012 19:31:44 +0000 (+0000) Subject: xforms X-Git-Tag: 2.5.0-alpha~7502 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4611f963e6acebfa0999a013d3c24c447a3aee5;p=apache xforms git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1239779 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index b67cfa8c23..89ec3a6970 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -804,9 +804,9 @@ Apache HTTP Server 2.0.41 and later utility. (Details ...)
int
-
One of the four available internal functions provided by - RewriteMap: toupper, tolower, escape or - unescape. (Details ...)
+
One of the five available internal functions provided by + RewriteMap: toupper, tolower, escape, unescape, or sleep. + (Details ...)
prg
Calls an external program or script to process the @@ -1033,7 +1033,9 @@ cannot use $N in the substitution string!
A dash indicates that no substitution should be performed (the existing path is passed through untouched). This is used when a flag (see below) needs to be applied without changing - the path.
+ the path. In Apache HTTP Server 2.5.0 and later, a substitution + that ultimately expands to this single character is also treated as + "no substitution". diff --git a/docs/manual/rewrite/rewritemap.html.en b/docs/manual/rewrite/rewritemap.html.en index 9442c982fc..79ec1124ee 100644 --- a/docs/manual/rewrite/rewritemap.html.en +++ b/docs/manual/rewrite/rewritemap.html.en @@ -316,6 +316,11 @@ by many requests.
  • unescape:
    Translates hex-encodings in the key back to special characters.
  • +
  • sleep:
    + Causes the request to sleep for the amount of time specified in + the key, in milliseconds. Keys are accepted in the form of + "2000", "2000ms", or "2s". This map always returns an empty value. +

    Available since Apache HTTP Server 2.5.0

  • @@ -327,6 +332,12 @@ by many requests. RewriteMap lc int:tolower
    RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]

    + +

    Delay a request by one half of a second

    + RewriteMap sleep int:sleep
    + RewriteRule ^/foo/bar.html -${sleep:"500ms"} +

    +

    Please note that the example offered here is for