Obtaining response headers in middleware

#1

Hi,

I am writing a downstream middleware that logs all headers in response.
After reading docs and read-through “@adonisjs/framework/src/Response”, I am still unable to find any method / way to obtain all response headers.

Is there any suggestion / recommendation on how I should do this?

Thanks

1 Like