diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2017-04-12 23:00:52 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2017-04-12 23:12:51 -0400 |
| commit | af036427ab0b2b21627a0202f359b59c965ccb92 (patch) | |
| tree | 34ed05bd5cc8f8ebf1e970ba2eadff9d0a255514 /README.md | |
| parent | 67b2a11effd6984753a461e5fe06e57281d793f9 (diff) | |
Support arbitrary headers with HTTP datasources
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -585,6 +585,13 @@ $ echo 'Hello there, {{(datasource "foo").headers.Host}}...' | gomplate -d foo=h Hello there, httpbin.org... ``` +Additional headers can be provided with the `--datasource-header`/`-H` option: + +```console +$ gomplate -d foo=https://httpbin.org/get -H 'foo=Foo: bar' -i '{{(datasource "foo").headers.Foo}}' +bar +``` + ###### Usage with Vault data The special `vault://` URL scheme can be used to retrieve data from [Hashicorp |
