Created
September 19, 2010 17:51
-
-
Save benburkert/586968 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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"} |
This file contains hidden or 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
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