Skip to content

Commit

Permalink
[4.9][grpc] Adds templated values to grpc headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Fekete authored and Robert Fekete committed Nov 9, 2024
1 parent e6c4abe commit 277ec52
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion content/headless/chunk/option-grpc-headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,20 @@

Available in {{< product >}} 4.8 and later.

*Description:* Adds custom gRPC headers to each RPC call. Currently only static header names and values are supported.
*Description:* Adds custom gRPC headers to each RPC call. Version 4.8 supported only static header names and values. For example:

```shell
headers(
"organization" => "Axoflow"
"stream-name" => "axo-stream"
)
```

Starting with version 4.9, you can use templates and macros in the header values.

```shell
headers(
"organization" => "Axoflow"
"stream-name" => "${HOST}"
)
```

0 comments on commit 277ec52

Please sign in to comment.