class Protocol::HTTP::Header::Cookie

def to_h

@returns [Hash(String, HTTP::Cookie)] a hash where keys are cookie names and values are {HTTP::Cookie} objects.

Parses the `cookie` header into a hash of cookie names and their corresponding cookie objects.
def to_h
	cookies = self.collect do |string|
		HTTP::Cookie.parse(string)
	end
	
	cookies.map{|cookie| [cookie.name, cookie]}.to_h
end