HeaderDictionaryExtensions Class

Definition

Contains extension methods for modifying an IHeaderDictionary instance.

public ref class HeaderDictionaryExtensions abstract sealed
public static class HeaderDictionaryExtensions
type HeaderDictionaryExtensions = class
Public Module HeaderDictionaryExtensions
Inheritance
HeaderDictionaryExtensions

Methods

Append(IHeaderDictionary, String, StringValues)

Add new values. Each item remains a separate array entry.

AppendCommaSeparatedValues(IHeaderDictionary, String, String[])

Quotes any values containing commas, and then comma joins all of the values with any existing values.

GetCommaSeparatedValues(IHeaderDictionary, String)

Get the associated values from the collection separated into individual values. Quoted values will not be split, and the quotes will be removed.

SetCommaSeparatedValues(IHeaderDictionary, String, String[])

Quotes any values containing commas, and then comma joins all of the values.

Applies to