Class: Qeweney::InputStream
- Inherits:
-
Object
- Object
- Qeweney::InputStream
- Defined in:
- lib/qeweney/rack.rb
Overview
TODO: integrate in env 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.
74 75 76 |
# File 'lib/qeweney/rack.rb', line 74 def initialize(request) @request = request end |
Instance Method Details
#each(&block) ⇒ Object
82 83 84 |
# File 'lib/qeweney/rack.rb', line 82 def each(&block) @request.each_chunk(&block) end |
#gets ⇒ Object
78 |
# File 'lib/qeweney/rack.rb', line 78 def gets; end |
#read(length = nil, outbuf = nil) ⇒ Object
80 |
# File 'lib/qeweney/rack.rb', line 80 def read(length = nil, outbuf = nil); end |
#rewind ⇒ Object
86 |
# File 'lib/qeweney/rack.rb', line 86 def rewind; end |