Many middlewares modify the response body, such as the gzip middleware. The tricky case to deal with is streaming responses, but it can certainly be done.
I am wondering if it is possible to access the body of a response in modifyResponse? I am working on overriding ServantErr's so I can respond with a more informative json response. I have it all working other then accessing the body to get the current error message and reuse.
--
You received this message because you are subscribed to the Google Groups "haskell-wai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-wai...@googlegroups.com.
To post to this group, send email to haske...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-wai/24a6510a-591e-481d-9ed5-a26cac02815a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.