class Protocol::HTTP::Header::Multiple

This isn’t a specific header but is used as a base for headers that store multiple values, such as cookies. The values are split and stored as an array internally, and serialized back to a newline-separated string when needed.
Represents headers that can contain multiple distinct values separated by newline characters.

def initialize(value)

@parameter value [String] the raw header value.

Initializes the multiple header with the given value. As the header key-value pair can only contain one value, the value given here is added to the internal array, and subsequent values can be added using the `<<` operator.
def initialize(value)
	super()
	
	self << value
end

def to_s

@returns [String] the serialized representation of the header values.

Serializes the stored values into a newline-separated string.
def to_s
	join("\n")
end