Skip to content

Instantly share code, notes, and snippets.

@gomasy
Last active August 29, 2015 14:11
Show Gist options
  • Save gomasy/328e06dae93af46e9f8c to your computer and use it in GitHub Desktop.
Save gomasy/328e06dae93af46e9f8c to your computer and use it in GitHub Desktop.
require "webrick"
server = WEBrick::HTTPServer.new({
:BindAddress => "localhost",
:Port => 8080
})
server.mount_proc("/") do |req, res|
puts req
end
server.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment