Class | FTW::Server |
In: |
lib/ftw/server.rb
lib/ftw/server.rb |
Parent: | Object |
A web server.
ADDRESS_RE | = | /^(.*):([^:]+)$/ | The pattern addresses must match. This is used in FTW::Server#initialize. | |
ADDRESS_RE | = | /^(.*):([^:]+)$/ | The pattern addresses must match. This is used in FTW::Server#initialize. |
Create a new server listening on the given addresses
This method will create, bind, and listen, so any errors during that process be raised as ServerSetupFailure
The parameter ‘addresses’ can be a single string or an array of strings. These strings MUST have the form "address:port". If the ‘address’ part is missing, it is assumed to be 0.0.0.0
Create a new server listening on the given addresses
This method will create, bind, and listen, so any errors during that process be raised as ServerSetupFailure
The parameter ‘addresses’ can be a single string or an array of strings. These strings MUST have the form "address:port". If the ‘address’ part is missing, it is assumed to be 0.0.0.0
Yield FTW::Connection instances to the block as clients connect.
Yield FTW::Connection instances to the block as clients connect.