class HTTP::Response::Streamer
Public Class Methods
new(str)
click to toggle source
# File lib/webmock/http_lib_adapters/http_gem/streamer.rb, line 4 def initialize(str) @io = StringIO.new str end
Public Instance Methods
readpartial(size = HTTP::Client::BUFFER_SIZE)
click to toggle source
# File lib/webmock/http_lib_adapters/http_gem/streamer.rb, line 8 def readpartial(size = HTTP::Client::BUFFER_SIZE) @io.read size end