Class: Hayabusa::Cgi

Inherits:
CGI
  • Object
show all
Defined in:
lib/hayabusa_cgi.rb

Overview

A hack to use CGI in FCGI mode (copied from the original FCGI framework).

Instance Method Summary collapse

Methods inherited from CGI

remove_params

Constructor Details

#initialize(request, *args) ⇒ Cgi

Returns a new instance of Cgi.



15
16
17
18
19
20
# File 'lib/hayabusa_cgi.rb', line 15

def initialize(request, *args)
  ::CGI.remove_params
  @request = request
  super(*args)
  @args = *args
end

Instance Method Details

#argsObject



22
23
24
# File 'lib/hayabusa_cgi.rb', line 22

def args
  @args
end

#env_tableObject



26
27
28
# File 'lib/hayabusa_cgi.rb', line 26

def env_table
  @request.env
end

#stdinputObject



30
31
32
# File 'lib/hayabusa_cgi.rb', line 30

def stdinput
  @request.in
end

#stdoutputObject



34
35
36
# File 'lib/hayabusa_cgi.rb', line 34

def stdoutput
  @request.out
end