Skip to content

Instantly share code, notes, and snippets.

@chooh
chooh / gist:219151
Created October 27, 2009 00:06 — forked from tomlea/gist:207938
require "net/http"
# Example Usage:
#
# use Rack::Proxy do |req|
# if req.path =~ %r{^/remote/service.php$}
# URI.parse("http://remote-service-provider.com/service-end-point.php?#{req.query}")
# end
# end
#