Skip to content
Snippets Groups Projects
Commit 02633255 authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

Add example policy for using headers in rego runtime

parent b3a2c000
No related branches found
No related tags found
No related merge requests found
package example.getHeader
# gets the value for "x-cache-key" header and return it in the result
# result is empty if the "x-cache-key" header is not sent in the request
key = input.header["x-cache-key"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment