class HTTP::Request::Writer

def each_chunk

that never happens.
row triggers a pathological case where Nagle is expecting a third write
in order to play nicely with Nagle's algorithm. Making two writes in a
It's important to send the request in a single write call when possible

Yields chunks of request data that should be sent to the socket.
def each_chunk
  data = join_headers
  @body.each do |chunk|
    data << encode_chunk(chunk)
    yield data
    data.clear
  end
  yield data unless data.empty?
  yield CHUNKED_END if chunked?
end