HttpHeaders Data type
Version: Available or changed with runtime version 1.0.
Is a collection of headers and their values.
Instance methods
The following methods are available on instances of the HttpHeaders data type.
Method name | Description |
---|---|
Add(Text, Text) | Adds the specified header and its value into the HttpHeaders collection. Validates the provided value. |
Add(Text, SecretText) | Adds the specified secret header and its value into the HttpHeaders collection. Validates the provided value. |
Clear() | Sets the HttpHeaders variable to the default value. |
Contains(Text) | Checks if the specified header exists in the HttpHeaders collection. |
ContainsSecret(Text) | Returns if the header for the given key has a secret value. |
GetSecretValues(Text, Array of [SecretText]) | Gets the secret values for the specified key. |
GetSecretValues(Text, List of [SecretText]) | Gets the secret values for the specified key. |
GetValues(Text, Array of [Text]) | Gets the values for the specified key. |
GetValues(Text, List of [Text]) | Gets the values for the specified key. |
Keys() | Gets the key name of all the headers |
Remove(Text) | Removes the specified header from the HttpHeaders collection. |
TryAddWithoutValidation(Text, Text) | Adds the specified header and its value into the HttpHeaders collection. Doesn't validate the provided value. |
TryAddWithoutValidation(Text, SecretText) | Adds the specified secret header and its value into the HttpHeaders collection. Doesn't validate the provided value. |