Class HeadersConverter
This utility class is designed to make HTTP request headers specific System.Collections.Specialized.NameValueCollection related conversions easier to work with.
Inheritance
System.Object
HeadersConverter
Namespace: Cuemon.Web
Assembly: Cuemon.Web.dll
Syntax
public static class HeadersConverter
Methods
| Improve this DocFromDictionary(IDictionary<String, String[]>)
Converts the specified headers
into its System.String equivalent.
Declaration
public static string FromDictionary(IDictionary<string, string[]> headers)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String[]> | headers | The request-header values to convert. |
Returns
Type | Description |
---|---|
System.String | A System.String equivalent to the values in the |
FromNameValueCollection(NameValueCollection)
Converts the specified headers
into its System.String equivalent.
Declaration
public static string FromNameValueCollection(NameValueCollection headers)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Specialized.NameValueCollection | headers | The request-header values to convert. |
Returns
Type | Description |
---|---|
System.String | A System.String equivalent to the values in the |
FromString(String)
Converts the specified headers
into its System.Collections.Specialized.NameValueCollection equivalent.
Declaration
public static NameValueCollection FromString(string headers)
Parameters
Type | Name | Description |
---|---|---|
System.String | headers | The request-header values to convert. |
Returns
Type | Description |
---|---|
System.Collections.Specialized.NameValueCollection | A System.Collections.Specialized.NameValueCollection equivalent to the values in the |