Created
August 13, 2015 01:13
-
-
Save spiritbear/c8949f7a6be4323a88ab 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 '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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment