Class: Ramaze::Adapter::Cgi

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

Overview

Our CGI adapter acts as wrapper for the Rack::Handler::CGI.

Class Method Summary collapse

Methods inherited from Base

before, before_call, call, middleware_respond, respond, stop

Class Method Details

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

start CGI 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
20
# File 'lib/ramaze/adapter/cgi.rb', line 15

def start host = nil, ports = nil
  Thread.new do
    Thread.current[:task] = :cgi
    Rack::Handler::CGI.run(self)
  end
end