Class: Raw::CgiAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/raw/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. ++



33
34
35
36
37
# File 'lib/raw/adapter/cgi.rb', line 33

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