Sha256: ab44b2604b47aa79691c517121e9952eedc6a967e7efa9ddcc39c5b944a5ad5f
Contents?: true
Size: 490 Bytes
Versions: 123
Compression:
Stored size: 490 Bytes
Contents
module HTTP class Response class Streamer def initialize(str) @io = StringIO.new str end def readpartial(size = nil) unless size if defined?(HTTP::Client::BUFFER_SIZE) size = HTTP::Client::BUFFER_SIZE elsif defined?(HTTP::Connection::BUFFER_SIZE) size = HTTP::Connection::BUFFER_SIZE end end @io.read size end def sequence_id -1 end end end end
Version data entries
123 entries across 114 versions & 9 rubygems