Class: Ramaze::Adapter::Lsws

Inherits:
Base show all
Defined in:
lib/ramaze/adapter/lsws.rb

Overview

Our Lsws adapter acts as wrapper for the Rack::Handler::LSWS.

Class Method Summary collapse

Methods inherited from Base

before, before_call, call, middleware_respond, respond, start, stop

Class Method Details

.run_server(host = nil, ports = nil) ⇒ Object

start Lsws in a new thread, host and port parameter are only taken to make it compatible with other adapters but have no influence and can be omitted



15
16
17
18
19
# File 'lib/ramaze/adapter/lsws.rb', line 15

def run_server host = nil, ports = nil
  Thread.new do
    Rack::Handler::LSWS.run(self)
  end
end