Class: Hayabusa::Cgi
Overview
A hack to use CGI in FCGI mode (copied from the original FCGI framework).
Instance Method Summary collapse
- #args ⇒ Object
- #env_table ⇒ Object
-
#initialize(request, *args) ⇒ Cgi
constructor
A new instance of Cgi.
- #stdinput ⇒ Object
- #stdoutput ⇒ Object
Methods inherited from CGI
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
#args ⇒ Object
22 23 24 |
# File 'lib/hayabusa_cgi.rb', line 22 def args @args end |
#env_table ⇒ Object
26 27 28 |
# File 'lib/hayabusa_cgi.rb', line 26 def env_table @request.env end |
#stdinput ⇒ Object
30 31 32 |
# File 'lib/hayabusa_cgi.rb', line 30 def stdinput @request.in end |
#stdoutput ⇒ Object
34 35 36 |
# File 'lib/hayabusa_cgi.rb', line 34 def stdoutput @request.out end |