Method: HTTPClient::SocketWrap#readpartial

Defined in:
lib/httpclient/session.rb

#readpartial(*args) ⇒ Object



445
446
447
448
449
450
451
452
# File 'lib/httpclient/session.rb', line 445

def readpartial(*args)
  # StringIO doesn't support :readpartial
  if @socket.respond_to?(:readpartial)
    @socket.readpartial(*args)
  else
    @socket.read(*args)
  end
end