Hello,
I am trying to find out if I can access what protocol is used calling the proxy (http, https). In javascript, you can access it outside of Apigee by looking up "location.protocol", however, that does not work in apigee js policy. I looked to see if that there is an apigee variable that can have this info, but does not appear to be the case. Thanks!
Solved! Go to Solution.
@Ayman K. Please use client.scheme flow variable. If you are using it in a javascript policy then do
var scheme = context.getVariable("client.scheme")
For complete reference of flow variables supported by Apigee, please visit: http://apigee.com/docs/api-services/reference/variables-reference
@Ayman K. Please use client.scheme flow variable. If you are using it in a javascript policy then do
var scheme = context.getVariable("client.scheme")
For complete reference of flow variables supported by Apigee, please visit: http://apigee.com/docs/api-services/reference/variables-reference
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |