monkeyDluffy6017 commented on issue #8621:
URL: https://github.com/apache/apisix/issues/8621#issuecomment-1373343048

   ```
   function(vars)
       local core = require ('apisix.core')
       local body, err = core.request.get_body()
       if not body then
           return false
       end
     
       local data, err = core.json.decode(body)
       if not data then
           return false
       end
     
       if data['foo'] == 'bar' then
           return true
       end
     
       return false
     end
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to