Class: InputStream

Inherits:
Object
  • Object
show all
Defined in:
lib/polyphony/http/server/rack.rb

Overview

Instance Method Summary collapse

Constructor Details

#initialize(request) ⇒ InputStream

Returns a new instance of InputStream.



19
20
21
# File 'lib/polyphony/http/server/rack.rb', line 19

def initialize(request)
  @request = request
end

Instance Method Details

#each(&block) ⇒ Object



27
28
29
# File 'lib/polyphony/http/server/rack.rb', line 27

def each(&block)
  @request.each_chunk(&block)
end

#getsObject



23
# File 'lib/polyphony/http/server/rack.rb', line 23

def gets; end

#read(length = nil, outbuf = nil) ⇒ Object



25
# File 'lib/polyphony/http/server/rack.rb', line 25

def read(length = nil, outbuf = nil); end

#rewindObject



31
# File 'lib/polyphony/http/server/rack.rb', line 31

def rewind; end