Method: HTTPX::Response::Buffer#write
- Defined in:
- lib/httpx/response/buffer.rb
#write(chunk) ⇒ Object
writes the chunk
into the buffer.
42 43 44 45 46 |
# File 'lib/httpx/response/buffer.rb', line 42 def write(chunk) @bytesize += chunk.bytesize try_upgrade_buffer @buffer.write(chunk) end |