Méthode | 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.
|
Méthode | Description | |
---|---|---|
ToString ( ) : string |
public Add ( |
||
header | Header to be added. | |
Résultat |
public Add ( string name, string value ) : |
||
name | string | Name of the header to be added. |
value | string | Value of the header to be added. |
Résultat |
public Merge ( |
||
headers | Headers to be merged. | |
Résultat | void |
public static Parse ( string headers ) : |
||
headers | string | String to be parsed. |
Résultat |
public Remove ( string name ) : bool | ||
name | string | Name of the header to be removed. |
Résultat | bool |
public Set ( |
||
header | Header to be set. | |
Résultat |
public Set ( string name, string value ) : |
||
name | string | Name of the header to be added. |
value | string | Value of the header to be added. |
Résultat |
public static TryParse ( string headers, |
||
headers | string | String to be parsed. |
headersCollection | Resulting collection of headers if parsing was successful; otherwise null. | |
Résultat | bool |
public this ( string name ) : |
||
name | string | Name of the header. |
Résultat |