Skip to content

Instantly share code, notes, and snippets.

@kkuchta
Created January 2, 2017 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkuchta/f3b78f3c490fb132ee2eac245d4fd04a to your computer and use it in GitHub Desktop.
Save kkuchta/f3b78f3c490fb132ee2eac245d4fd04a to your computer and use it in GitHub Desktop.
class Echoer
def call(env)
request = Rack::Request.new(env)
puts '---'
puts request.body.read
return [200, {}, ['ok']]
end
end
run Echoer.new
@kkuchta
Copy link
Author

kkuchta commented Jan 2, 2017

Run with rackup echoer.ru -p 12345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment