Type:
Class

ERBHandler evaluates an ERB file and returns the result. This handler is automatically used if there are .rhtml files in a directory served by the FileHandler.

ERBHandler supports GET and POST methods.

The ERB file is evaluated with the local variables servlet_request and servlet_response which are a WEBrick::HTTPRequest and WEBrick::HTTPResponse respectively.

Example .rhtml file:

Request to <%= servlet_request.request_uri %>

Query params <%= servlet_request.query.inspect %>
do_POST

do_POST(req, res) Instance Public methods Handles POST requests

2015-06-12 00:00:58
do_GET

do_GET(req, res) Instance Public methods Handles GET requests

2015-06-11 23:55:23
new

new(server, name) Class Public methods Creates a new

2015-06-11 23:50:25