diff --git a/docs/release-notes.md b/docs/release-notes.md index 2f12b06..c944da0 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,3 +1,5 @@ +## Version 5.7 +* Added shared setting [HeaderSubstitution](./request-settings.md#headersubstitution) to control if and how environment variables are injected into header names and/or values. ## Version 5.6 * Added support for content type "multipart/form-data". See [Content Types](./userguide.md#content-types). ## Version 5.5 diff --git a/docs/request-settings.md b/docs/request-settings.md index 51f5977..e2797aa 100644 --- a/docs/request-settings.md +++ b/docs/request-settings.md @@ -1,5 +1,5 @@ Request-related settings are settings you use to specify attributes of the HTTP request that `HttpCommand` will process. -## Settings +## Instance Settings ### `Command`
Description | @@ -220,6 +220,57 @@ If
Description | +In the following text, the phrase "environment variable" is taken to mean either an environment variable or a Dyalog configuration setting as both of these are retrieved using the same technique (
You may also use the delimiters in the |
Default | +'' |
Example(s) |
+For these examples, assume we have an environment variable named "MyVariable" which has a value of '0123456789' .
+Now let's specify a delimiter... +
+The delimiters do not have to be single characters... +
+Alternatively, you can use the
+ |
Details | +Many web services require an API key. It is generally considered bad practice to hard-code such API keys in your application code. Storing the keys as environment variables allows them to be retrieved more securely. +If no environment variable matches the name between the delimeters, no substitution is performed. + |