How to enforce certian headers in the request and throw faults if not found?
Solved! Go to Solution.
This can be done through the use of an Extract Variables policy followed by a Fault rules policy. The Extract Variables policy can set the value of a header to a variable. The Fault rules policy can be setup to fire depending on the value of the variable.
Variable "request.headers.names" provide list of headers in the request. This list need to be checked against the expected header name. In case, if a required header is missing; raise a fault.
There are many other related variables are available at http://apigee.com/docs/api-services/reference/vari...
This can be done through the use of an Extract Variables policy followed by a Fault rules policy. The Extract Variables policy can set the value of a header to a variable. The Fault rules policy can be setup to fire depending on the value of the variable.
Variable "request.headers.names" provide list of headers in the request. This list need to be checked against the expected header name. In case, if a required header is missing; raise a fault.
There are many other related variables are available at http://apigee.com/docs/api-services/reference/vari...
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |