Skip to content

Instantly share code, notes, and snippets.

@chad
Created October 20, 2009 15:21
Show Gist options
  • Save chad/214327 to your computer and use it in GitHub Desktop.
Save chad/214327 to your computer and use it in GitHub Desktop.
require 'webrick'
class MyServlet < WEBrick::HTTPServlet::AbstractServlet
def do_GET(request, response)
response.body = "Whatever you want"
end
end
server = WEBrick::HTTPServer.new(:Port => 8082)
server.mount "/whatever", MyServlet
server.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment