class Protocol::HTTP::Body::Writable::Output
def close(error = nil)
def close(error = nil) @closed = true if error @writable.close(error) else @writable.close_write end end
def closed?
def closed? @closed || @writable.closed? end
def initialize(writable)
def initialize(writable) @writable = writable @closed = false end
def write(chunk)
def write(chunk) @writable.write(chunk) end