Class: Qeweney::InputStream

Inherits:
Object
  • Object
show all
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

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

#getsObject



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

#rewindObject



86
# File 'lib/qeweney/rack.rb', line 86

def rewind; end