DEV Community

Discussion on: Go middleware example. How to alter a HTTP handler result?

Collapse
 
rdasilva_fispan profile image
rdasilva-fispan

Is there any way I can read what the enclosing handler is sending? I would like to check inspect the response body and the HTTP status code of the enclosing handler on my enclosed handler and take action based on what I am receiving there?

Thank you!