Method | Description | |
---|---|---|
Add ( |
Adds a new header. If the header already exists, method will merge new value and parameters with the existing ones. |
|
Add ( string name, string value ) : |
Adds a new header. If the header already exists, method will merge new value and parameters with the existing ones. |
|
HeaderCollection ( ) : System |
Initializes a new instance of the HeaderCollection class.
|
|
Merge ( |
Merges headers.
|
|
Parse ( string headers ) : |
Parses a given string as a HeaderCollection.
|
|
Remove ( string name ) : bool |
Removes the header with given name.
|
|
Set ( |
Sets a new header. If the header already exists, it is replaced with the new one. |
|
Set ( string name, string value ) : |
Sets a new header. If the header already exists, it is replaced with the new one. |
|
TryParse ( string headers, |
Tries to parse a given string as a HeaderCollection.
|
|
this ( string name ) : |
Gets or sets the header by it's name.
|
Method | Description | |
---|---|---|
ToString ( ) : string |
public Add ( |
||
header | Header to be added. | |
return |
public Add ( string name, string value ) : |
||
name | string | Name of the header to be added. |
value | string | Value of the header to be added. |
return |
public Merge ( |
||
headers | Headers to be merged. | |
return | void |
public static Parse ( string headers ) : |
||
headers | string | String to be parsed. |
return |
public Remove ( string name ) : bool | ||
name | string | Name of the header to be removed. |
return | bool |
public Set ( |
||
header | Header to be set. | |
return |
public Set ( string name, string value ) : |
||
name | string | Name of the header to be added. |
value | string | Value of the header to be added. |
return |
public static TryParse ( string headers, |
||
headers | string | String to be parsed. |
headersCollection | Resulting collection of headers if parsing was successful; otherwise null. | |
return | bool |
public this ( string name ) : |
||
name | string | Name of the header. |
return |