Created
January 2, 2017 22:14
-
-
Save kkuchta/8cc2d3e781a536025b37189b3b65b038 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