From: Eric Wong Date: Thu, 14 Aug 2014 19:44:09 +0000 (+0000) Subject: README: document $env support for reading Rack env X-Git-Tag: v2.0.1~6 X-Git-Url: https://repo.or.cz/w/clogger.git/commitdiff_plain/3b02e6a8c745a92dab9186555c9ed0161ca8d8ea README: document $env support for reading Rack env This is more portable across different servers than Thread.current in case of non-blocking servers which may be serving multiple clients at once. This is also faster than relying on $e{...} since $e{...} uses eval and that is slow. --- diff --git a/README b/README index e125b6f..74c8185 100644 --- a/README +++ b/README @@ -88,6 +88,7 @@ that receives a "<<" method: * $pid - process ID of the current process * $e{Thread.current} - Thread processing the request * $e{Actor.current} - Actor processing the request (Revactor or Rubinius) +* $env{variable_name} - any Rack environment variable (e.g. rack.url_scheme) == REQUIREMENTS