HttpHeadersCollection Constructors
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.
Overloads
HttpHeadersCollection() |
Initializes an empty collection of HTTP Headers |
HttpHeadersCollection(IEnumerable<KeyValuePair<String,IEnumerable<String>>>) |
Initializes a collection of HTTP headers from an IEnumerable of key value pairs, where each key (HTTP header name) can have multiple header values. |
HttpHeadersCollection(IEnumerable<KeyValuePair<String,String>>) |
Initializes a collection of HTTP headers from an IEnumerable of key value pairs. |
HttpHeadersCollection()
- Source:
- HttpHeadersCollection.cs
Initializes an empty collection of HTTP Headers
public HttpHeadersCollection ();
Public Sub New ()
Applies to
HttpHeadersCollection(IEnumerable<KeyValuePair<String,IEnumerable<String>>>)
- Source:
- HttpHeadersCollection.cs
Initializes a collection of HTTP headers from an IEnumerable of key value pairs, where each key (HTTP header name) can have multiple header values.
public HttpHeadersCollection (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Collections.Generic.IEnumerable<string>>> headers);
new Microsoft.Azure.Functions.Worker.Http.HttpHeadersCollection : seq<System.Collections.Generic.KeyValuePair<string, seq<string>>> -> Microsoft.Azure.Functions.Worker.Http.HttpHeadersCollection
Public Sub New (headers As IEnumerable(Of KeyValuePair(Of String, IEnumerable(Of String))))
Parameters
- headers
- IEnumerable<KeyValuePair<String,IEnumerable<String>>>
A collection of key value pairs representing HTTP headers names and values.
Applies to
HttpHeadersCollection(IEnumerable<KeyValuePair<String,String>>)
- Source:
- HttpHeadersCollection.cs
Initializes a collection of HTTP headers from an IEnumerable of key value pairs.
public HttpHeadersCollection (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> headers);
new Microsoft.Azure.Functions.Worker.Http.HttpHeadersCollection : seq<System.Collections.Generic.KeyValuePair<string, string>> -> Microsoft.Azure.Functions.Worker.Http.HttpHeadersCollection
Public Sub New (headers As IEnumerable(Of KeyValuePair(Of String, String)))
Parameters
- headers
- IEnumerable<KeyValuePair<String,String>>
A collection of key value pairs representing HTTP header names and values.