Created
March 10, 2016 08:23
-
-
Save ream88/73d20eb57a24b0499d73 to your computer and use it in GitHub Desktop.
Server which returns the request body
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
require 'webrick' | |
server = WEBrick::HTTPServer.new(Port: 8080) | |
server.mount_proc '/' do |req, res| | |
res.body = req.body | |
end | |
server.start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment