1 # -*- encoding: binary -*-
3 class Rainbows::EvCore::CapInput
5 def initialize(io, client, max)
6 @io, @client, @bytes_left = io, client, max
10 if (@bytes_left -= buf.size) < 0
12 @client.err_413("chunked request body too big")
17 def gets; @io.gets; end
18 def each; @io.each { |x| yield x }; end
19 def size; @io.size; end
20 def rewind; @io.rewind; end
21 def read(*args); @io.read(*args); end