class Protocol::HTTP::Body::Writable
def close(error = nil)
Stop generating output; cause the next call to write to fail with the given error. Does not prevent existing chunks from being read. In other words, this indicates both that no more data will be or should be written to the body.
def close(error = nil) @error ||= error @queue.clear @queue.close super end