Share via


IHeaderDictionary Interface

Definition

Represents a wrapper for owin.RequestHeaders and owin.ResponseHeaders.

public interface IHeaderDictionary : Microsoft.Owin.IReadableStringCollection, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,string[]>>, System.Collections.Generic.IDictionary<string,string[]>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string[]>>
type IHeaderDictionary = interface
    interface IReadableStringCollection
    interface seq<KeyValuePair<string, string[]>>
    interface IEnumerable
    interface IDictionary<string, string[]>
    interface ICollection<KeyValuePair<string, string[]>>
Public Interface IHeaderDictionary
Implements ICollection(Of KeyValuePair(Of String, String())), IDictionary(Of String, String()), IEnumerable(Of KeyValuePair(Of String, String())), IReadableStringCollection
Derived
Implements

Properties

Item[String]

Get or sets the associated value from the collection as a single string.

Methods

Append(String, String)

Add a new value. Appends to the header if already present

AppendCommaSeparatedValues(String, String[])

Quotes any values containing comas, and then coma joins all of the values with any existing values.

AppendValues(String, String[])

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

Get(String)

Get the associated value from the collection. Multiple values will be merged. Returns null if the key is not present.

(Inherited from IReadableStringCollection)
GetCommaSeparatedValues(String)

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

GetValues(String)

Get the associated values from the collection in their original format. Returns null if the key is not present.

(Inherited from IReadableStringCollection)
Set(String, String)

Sets a specific header value.

SetCommaSeparatedValues(String, String[])

Quotes any values containing comas, and then coma joins all of the values.

SetValues(String, String[])

Sets the specified header values without modification.

Applies to