Skip to content

Instantly share code, notes, and snippets.

@bparanj
Created October 4, 2010 07:43
Show Gist options
  • Save bparanj/609355 to your computer and use it in GitHub Desktop.
Save bparanj/609355 to your computer and use it in GitHub Desktop.
require "rubygems"
require "rack"
require "thin"
cgi_inspector = lambda do |env|
[200, {}, ["Your request:
http method is #{env['REQUEST_METHOD']}
path is #{env['PATH_INFO']}
params is #{env['QUERY_STRING']}
"]]
end
Rack::Handler::Thin.run cgi_inspector, :Port => 3005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment