class Async::HTTP::Protocol::HTTP11
def write_body(body, chunked = true)
def write_body(body, chunked = true) if body.nil? or body.empty? write_empty_body(body) elsif length = body.length write_fixed_length_body(body, length) elsif chunked write_chunked_body(body) else write_body_and_close(body) end end