Created
October 20, 2009 15:21
-
-
Save chad/214327 to your computer and use it in GitHub Desktop.
This file contains hidden or 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' | |
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