Created
January 2, 2017 22:14
-
-
Save kkuchta/f3b78f3c490fb132ee2eac245d4fd04a 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
class Echoer | |
def call(env) | |
request = Rack::Request.new(env) | |
puts '---' | |
puts request.body.read | |
return [200, {}, ['ok']] | |
end | |
end | |
run Echoer.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with
rackup echoer.ru -p 12345