Class: Nitro::CgiAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/nitro/adapter/cgi.rb

Overview

A plain CGI adapter. To be used only in development environments, this adapter is extremely slow for live/production environments. This adapter is provided for the sake of completeness.

Class Method Summary collapse

Class Method Details

.start(server) ⇒ Object

– No need for connection pooling, CGI uses process. ++



35
36
37
38
39
# File 'lib/nitro/adapter/cgi.rb', line 35

def self.start(server)
  cgi = CGI.new
  Router.strip_path = cgi.env["SCRIPT_NAME"]
  Cgi.process(server, cgi, $stdin, $stdout)
end