Class: FCGI::Stream

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/handler/fastcgi.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) _rack_read_without_buffer



8
# File 'lib/rack/handler/fastcgi.rb', line 8

alias _rack_read_without_buffer read

- (Object) read(n, buffer = nil)



10
11
12
13
14
# File 'lib/rack/handler/fastcgi.rb', line 10

def read(n, buffer=nil)
  buf = _rack_read_without_buffer n
  buffer.replace(buf.to_s)  if buffer
  buf
end