Class: Borges::WEBrickServlet

# Borges::WEBrickServlet (Class)

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.

## Methods

create do_GET do_POST new start

## Attributes

handler | [RW] |

## Public Class methods

create(options)

Create a new unstarted WEBrick server that listens on port 7000, and mounts the Borges::WEBrickServlet on /borges.

new(server)

Create a WEBrickServlet.

start(options = {})

Start a Borges::WEBrickServlet with a SIGINT handler. Does not return until a SIGINT is sent.

## Public Instance methods

do_GET(req, res)

WEBrick HTTP GET handler

do_POST(req, res)

Alias for do_GET

[Validate]