Created
August 24, 2014 14:41
-
-
Save dreikanter/2239150ccfa518429c22 to your computer and use it in GitHub Desktop.
Rack::Request object environment variables example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#<Rack::Request:0x007f92241da138 | |
@env= | |
{"GATEWAY_INTERFACE"=>"CGI/1.1", | |
"PATH_INFO"=>"", | |
"QUERY_STRING"=>"", | |
"REMOTE_ADDR"=>"127.0.0.1", | |
"REMOTE_HOST"=>"localhost", | |
"REQUEST_METHOD"=>"GET", | |
"REQUEST_URI"=>"http://localhost:9292/sum/1/b", | |
"SCRIPT_NAME"=>"/sum/1/b", | |
"SERVER_NAME"=>"localhost", | |
"SERVER_PORT"=>"9292", | |
"SERVER_PROTOCOL"=>"HTTP/1.1", | |
"SERVER_SOFTWARE"=>"WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)", | |
"HTTP_HOST"=>"localhost:9292", | |
"HTTP_USER_AGENT"=> "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Firefox/31.0", | |
"HTTP_ACCEPT"=> "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", | |
"HTTP_ACCEPT_LANGUAGE"=>"en-US,en;q=0.5", | |
"HTTP_ACCEPT_ENCODING"=>"gzip, deflate", | |
"HTTP_COOKIE"=> "", | |
"HTTP_CONNECTION"=>"keep-alive", | |
"HTTP_CACHE_CONTROL"=>"max-age=0", | |
"rack.version"=>[1, 2], | |
"rack.input"=> #<Rack::Lint::InputWrapper:0x007f92241da278 | |
@input=#<StringIO:0x007f92241e25e0>>, | |
"rack.errors"=> #<Rack::Lint::ErrorWrapper:0x007f92241da200 | |
@error=#<IO:<STDERR>>>, | |
"rack.multithread"=>true, | |
"rack.multiprocess"=>false, | |
"rack.run_once"=>false, | |
"rack.url_scheme"=>"http", | |
"HTTP_VERSION"=>"HTTP/1.1", | |
"REQUEST_PATH"=>"/sum/1/b"}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment