Class: InputStream
- Inherits:
-
Object
- Object
- InputStream
- Defined in:
- lib/polyphony/http/server/rack.rb
Overview
Implements a rack input stream: www.rubydoc.info/github/rack/rack/master/file/SPEC#label-The+Input+Stream
Instance Method Summary collapse
- #each(&block) ⇒ Object
- #gets ⇒ Object
-
#initialize(request) ⇒ InputStream
constructor
A new instance of InputStream.
- #read(length = nil, outbuf = nil) ⇒ Object
- #rewind ⇒ Object
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 |
#gets ⇒ Object
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 |
#rewind ⇒ Object
31 |
# File 'lib/polyphony/http/server/rack.rb', line 31 def rewind; end |