Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to calculate the size of incoming payload on Apigee?

Is there any flow variable that holds the size of payload of incoming request in Apigee? I know there is the Content-Length header, but I need to calculate the size in bytes/MBs. If there isn't any flow variable, how else can I calculate the payload size in Apigee. Any suggestions to achieve this in Apigee JS policy?

2 2 506
2 REPLIES 2