Class: PhusionPassenger::ClassicRails::CGIFixed
- Defined in:
- lib/phusion_passenger/classic_rails/cgi_fixed.rb
Overview
Modifies CGI so that we can use it. Main thing it does is expose the stdinput and stdoutput so RequestHandler can connect them to the right sources. It also exposes the env_table so that RequestHandler can hook the request parameters into the environment table.
This is partially based on the FastCGI code, but much of the Ruby 1.6 backwards compatibility is removed.
Instance Method Summary collapse
- #args ⇒ Object
- #env_table ⇒ Object
-
#initialize(params, input, output, *args) ⇒ CGIFixed
constructor
A new instance of CGIFixed.
- #stdinput ⇒ Object
- #stdoutput ⇒ Object
Constructor Details
#initialize(params, input, output, *args) ⇒ CGIFixed
Returns a new instance of CGIFixed.
42 43 44 45 46 47 48 |
# File 'lib/phusion_passenger/classic_rails/cgi_fixed.rb', line 42 def initialize(params, input, output, *args) @env_table = params @args = *args @input = input @out = output super(*args) end |
Instance Method Details
#args ⇒ Object
50 51 52 |
# File 'lib/phusion_passenger/classic_rails/cgi_fixed.rb', line 50 def args @args end |
#env_table ⇒ Object
54 55 56 |
# File 'lib/phusion_passenger/classic_rails/cgi_fixed.rb', line 54 def env_table @env_table end |
#stdinput ⇒ Object
58 59 60 |
# File 'lib/phusion_passenger/classic_rails/cgi_fixed.rb', line 58 def stdinput @input end |
#stdoutput ⇒ Object
62 63 64 |
# File 'lib/phusion_passenger/classic_rails/cgi_fixed.rb', line 62 def stdoutput @out end |