class Async::HTTP::Protocol::HTTP1::Finishable
def wait(persistent = true)
def wait(persistent = true) if @reading @closed.wait elsif persistent # If the connection can be reused, let's gracefully discard the body: self.discard else # Else, we don't care about the body, so we can close it immediately: self.close end end