module HTTPClient::SocketWrap
def readpartial(size, buf = nil)
def readpartial(size, buf = nil) # StringIO doesn't support :readpartial if @socket.respond_to?(:readpartial) @socket.readpartial(size, buf) else @socket.read(size, buf) end end
def readpartial(size, buf = nil) # StringIO doesn't support :readpartial if @socket.respond_to?(:readpartial) @socket.readpartial(size, buf) else @socket.read(size, buf) end end