How to read Request and Response using Lua Plugin

We have a usecase where we need to read request and response for API calls being proxied via HAProxy. We tried and we could only have read http request body, and not response. Any documentation that can help us ?