Created
August 13, 2015 01:13
-
-
Save spiritbear/c8949f7a6be4323a88ab to your computer and use it in GitHub Desktop.
Revisions
-
spiritbear created this gist
Aug 13, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ require 'rack' require 'rack/server' class RemoteIp def response [200, {}, 'Hello World'] end end class RemoteIpApp def self.call(env) p env end end Rack::Server.start "app" => RemoteIpApp