"application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", "HTTP_CACHE_CONTROL"=>"max-age=0", "HTTP_HOST"=>"localhost:4567", "SERVER_NAME"=>"localhost", "rack.url_scheme"=>"http", "HTTP_USER_AGENT"=> "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleW">

橋本詳解[B!]新着記事・評価 - はてなブックマーク (original) (raw)

sinatraをサブディレクトリで動かしている時なんかに必要 http://localhost:4567/hello/world にアクセスしたときのenvをppした {"HTTP_ACCEPT"=> "application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", "HTTP_CACHE_CONTROL"=>"max-age=0", "HTTP_HOST"=>"localhost:4567", "SERVER_NAME"=>"localhost", "rack.url_scheme"=>"http", "HTTP_USER_AGENT"=> "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleW