Class: SCGI::CGIFixed

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

Overview

Modifies CGI so that we can use it. Main thing it does is expose the stdinput and stdoutput so SCGI::Processor can connect them to the right sources. It also exposes the env_table so that SCGI::Processor and hook the SCGI parameters into the environment table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params, data, out, *args) ⇒ CGIFixed

Returns a new instance of CGIFixed.



58
59
60
61
62
63
64
# File 'lib/scgi.rb', line 58

def initialize(params, data, out, *args)
  @env_table = params
  @args = *args
  @input = StringIO.new(data)
  @out = out
  super(*args)
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



56
57
58
# File 'lib/scgi.rb', line 56

def args
  @args
end

#env_tableObject (readonly)

Returns the value of attribute env_table.



56
57
58
# File 'lib/scgi.rb', line 56

def env_table
  @env_table
end

Instance Method Details

#stdinputObject



66
67
68
# File 'lib/scgi.rb', line 66

def stdinput
  @input
end

#stdoutputObject



70
71
72
# File 'lib/scgi.rb', line 70

def stdoutput
  @out
end