class Async::HTTP::Protocol::HTTP11
def write_body_and_close(body)
def write_body_and_close(body) # We can't be persistent because we don't know the data length: @persistent = false write_persistent_header @stream.write("\r\n") body.each do |chunk| @stream.write(chunk) @stream.flush end @stream.io.close_write end