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

Defined in:
lib/rack/handler/fastcgi.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#eachObject

This is missing by default.



15
16
17
18
19
# File 'lib/rack/handler/fastcgi.rb', line 15

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

#read(*args) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/rack/handler/fastcgi.rb', line 21

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