Module: Rack::Handler::FastCGI::ProperStream

Defined in:
lib/gems/rack-0.9.1/lib/rack/handler/fastcgi.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#eachObject

This is missing by default.



16
17
18
19
20
# File 'lib/gems/rack-0.9.1/lib/rack/handler/fastcgi.rb', line 16

def each                # This is missing by default.
  while line = gets
    yield line
  end
end

#read(*args) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/gems/rack-0.9.1/lib/rack/handler/fastcgi.rb', line 22

def read(*args)
  if args.empty?
    super || ""           # Empty string on EOF.
  else
    super
  end
end