Skip to content

Instantly share code, notes, and snippets.

@sevennineteen
Created May 21, 2012 17:25
Show Gist options
  • Save sevennineteen/2763408 to your computer and use it in GitHub Desktop.
Save sevennineteen/2763408 to your computer and use it in GitHub Desktop.
Show HTTP request headers (Rack)
require 'sinatra'
get '/' do
@headers = env.reject {|k, v| k =~ /async*|rack*/}.sort.each
haml :index
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment