From 3b02e6a8c745a92dab9186555c9ed0161ca8d8ea Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 14 Aug 2014 19:44:09 +0000 Subject: 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. --- README | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-24-ge0c7