class Protocol::HTTP::Body::Writable

def close(error = nil)

@parameter error [Exception] The error that caused this body to be closed, if any. Will be raised on the next call to {read}.

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