Class: FCGI::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/cgialt/fcgi/core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, env, stdin, stdout = nil, stderr = nil, data = nil) ⇒ Request

Returns a new instance of Request.



279
280
281
282
283
284
285
286
# File 'lib/cgialt/fcgi/core.rb', line 279

def initialize(id, env, stdin, stdout = nil, stderr = nil, data = nil)
  @id = id
  @env = env
  @in = stdin
  @out = stdout || StringIO.new
  @err = stderr || StringIO.new
  @data = data || StringIO.new
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



293
294
295
# File 'lib/cgialt/fcgi/core.rb', line 293

def data
  @data
end

#envObject (readonly)

Returns the value of attribute env.



289
290
291
# File 'lib/cgialt/fcgi/core.rb', line 289

def env
  @env
end

#errObject (readonly)

Returns the value of attribute err.



292
293
294
# File 'lib/cgialt/fcgi/core.rb', line 292

def err
  @err
end

#idObject (readonly)

Returns the value of attribute id.



288
289
290
# File 'lib/cgialt/fcgi/core.rb', line 288

def id
  @id
end

#inObject (readonly)

Returns the value of attribute in.



290
291
292
# File 'lib/cgialt/fcgi/core.rb', line 290

def in
  @in
end

#outObject (readonly)

Returns the value of attribute out.



291
292
293
# File 'lib/cgialt/fcgi/core.rb', line 291

def out
  @out
end

Instance Method Details

#finishObject

for backword compatibility



295
296
# File 'lib/cgialt/fcgi/core.rb', line 295

def finish   # for backword compatibility
end