Skip to content

Instantly share code, notes, and snippets.

@beccasaurus
Created March 27, 2017 05:59
Show Gist options
  • Save beccasaurus/ac31156cc825ad11a8ee05c0ef26d8e8 to your computer and use it in GitHub Desktop.
Save beccasaurus/ac31156cc825ad11a8ee05c0ef26d8e8 to your computer and use it in GitHub Desktop.
Simplest WEBrick Flex
require "webrick"
server = WEBrick::HTTPServer.new Port: ENV["PORT"]
server.mount_proc("/"){|_,r| r.body = "Hello" }
server.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment