Skip to content

Instantly share code, notes, and snippets.

@benburkert
Created September 19, 2010 17:51
Show Gist options
  • Save benburkert/586968 to your computer and use it in GitHub Desktop.
Save benburkert/586968 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'typhoeus'
response = Typhoeus::Request.run('http://127.0.0.1:3001', {})
p response.headers_hash
## => {"HTTP/1.1 200 OK"=>nil, "Date"=>"...", "Content-Length"=>"12", "Connection"=>"close"}
run lambda { [200, {}, 'Hello World!'] }
## rackup config.ru -p 3001 -E none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment