Skip to content

Instantly share code, notes, and snippets.

@andrew-carroll
Created January 15, 2016 20:11
Show Gist options
  • Save andrew-carroll/93f905bc8fe7c1b783f8 to your computer and use it in GitHub Desktop.
Save andrew-carroll/93f905bc8fe7c1b783f8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'webrick/httpproxy'
port = ARGV[0] or 8000
server = WEBrick::HTTPProxyServer.new(Port: port)
server.mount_proc('/'){|req,res|}
server.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment