Created
May 13, 2010 14:52
-
-
Save bschwartz/399903 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env ruby | |
# | |
# Send your exact HTTP request back to you in the response body. | |
# Useful for debugging. | |
# | |
require 'proxymachine' | |
proxy do |data| | |
{:close => "HTTP/1.1 200 OK\n\n#{data}"} | |
end | |
ProxyMachine.run('endpoint', '0.0.0.0', 3000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment