BackendStack21 / fast-gateway

Fast-gateway is an easy to use Node.js API gateway framework built to handle large scale API traffic with great performance and scalability. Written with JavaScript, it is a framework for the masses!
MIT License
311 stars 35 forks source link

how to read response data #83

Closed mrtruyen closed 1 year ago

mrtruyen commented 2 years ago

Hi team,

How can I read the response data on hook here:

hooks: {
      onResponse (req, res, stream) {  
        // I want to read response data here
      }
jkyberneees commented 1 year ago

Hi @mrtruyen , please see an example here: https://github.com/BackendStack21/fast-gateway/blob/master/demos/post-processing.js