class Protocol::HTTP::Cookie

def to_s

@returns [String] The string representation of the cookie.

Convert the cookie to a string.
def to_s
	buffer = String.new.b
	
	buffer << encoded_name << "=" << encoded_value
	
	if @directives
		@directives.collect do |key, value|
			buffer << ";"
			
			case value
			when String
				buffer << key << "=" << value
			when TrueClass
				buffer << key
			end
		end
	end
	
	return buffer
end