Method: HTTPX::Response::Body#read
- Defined in:
- lib/httpx/response/body.rb
permalink #read(*args) ⇒ Object
reads a chunk from the payload (implementation of the IO reader protocol).
69 70 71 72 73 74 75 76 77 78 |
# File 'lib/httpx/response/body.rb', line 69 def read(*args) return unless @buffer unless @reader rewind @reader = @buffer end @reader.read(*args) end |