Passing Header Fields to the Client
<flow>
<request content="httpbin">{ "url": "http://httpbin.org/cache/600" }</request>
<set-response-headers>
{
{{: $upstream/httpbin/headers/content-type }}
{{: $upstream/httpbin/headers/cache-control }}
}
</set-response-headers>
</flow> {
{{: $upstream/httpbin/headers/content-type | $upstream/httpbin/headers/cache-control }}
} {
{{with $upstream/httpbin/headers }} {{: content-type | cache-control }} {{end}}
}PreviousEncoding and Decoding JWTNextHow can I pass an arbitrary header field to an upstream system?
Last updated