Class FTW::WebServer
In: lib/ftw/webserver.rb
lib/ftw/webserver.rb
Parent: Object

An attempt to invent a simple FTW web server.

Methods

Included Modules

FTW::Protocol FTW::CRLF FTW::Protocol FTW::CRLF

Public Class methods

Public Instance methods

Handle a new connection.

This method parses http requests and passes them on to handle_request

@param connection The FTW::Connection being handled.

Handle a new connection.

This method parses http requests and passes them on to handle_request

@param connection The FTW::Connection being handled.

Handle a request. This will set up the rack ‘env’ and invoke the application associated with this handler.

Handle a request. This will set up the rack ‘env’ and invoke the application associated with this handler.

Run the server.

Connections are farmed out to threads.

Run the server.

Connections are farmed out to threads.

[Validate]