Class: Bijou::WEBrick::Servlet

Inherits:
HTTPServlet::AbstractServlet
  • Object
show all
Defined in:
lib/bijou/webrick/handler.rb

Overview

A basic WEBrick servlet to get started with Bijou. This servlet can be started by running ‘ruby script/server.rb’ on the local machine.

Note that it does not support the POST method, so any forms must specifiy the attribute method=“GET” or leave it unspecified (as the default is GET).

Instance Method Summary collapse

Instance Method Details

#do_GET(request, response) ⇒ Object

The GET handler dispatches incoming requests to the Bijou::WEBrick::Adapter class.



19
20
21
# File 'lib/bijou/webrick/handler.rb', line 19

def do_GET(request, response)
  servlet = Bijou::WEBrick::Adapter.handle(request, response)
end