summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2017-04-12 23:00:52 -0400
committerDave Henderson <dhenderson@gmail.com>2017-04-12 23:12:51 -0400
commitaf036427ab0b2b21627a0202f359b59c965ccb92 (patch)
tree34ed05bd5cc8f8ebf1e970ba2eadff9d0a255514 /README.md
parent67b2a11effd6984753a461e5fe06e57281d793f9 (diff)
Support arbitrary headers with HTTP datasources
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2c7b8526..e5247b12 100644
--- a/README.md
+++ b/README.md
@@ -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