werkzeug.HeaderSet.as_set

HeaderSet.as_set(preserve_casing=False)[source]

Return the set as real python set type. When calling this, all the items are converted to lowercase and the ordering is lost.

Parameters:preserve_casing – if set to True the items in the set returned will have the original case like in the HeaderSet, otherwise they will be lowercase.