IHeaderDictionary Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
-
IReadableStringCollection ICollection<KeyValuePair<String,String[]>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,String[]> IEnumerable<KeyValuePair<String,String[]>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IEnumerable
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. |