In: |
lib/Borges/WEBrick.rb
|
Parent: | Object |
Borges::WEBrickServlet is a Servlet for use with WEBrick.
To use:
require ‘Borges/WEBrick’ Borges::WEBrickServlet.start
This will start a WEBrick server on port 7000 and install an INT handler. The server can be killed with a ^C or by sending SIGINT.
handler | [RW] |
Create a new unstarted WEBrick server that listens on port 7000, and mounts the Borges::WEBrickServlet on /borges.
Start a Borges::WEBrickServlet with a SIGINT handler. Does not return until a SIGINT is sent.