OWIN OnSendingHeaders Callback - Reading Response Body
问题 This question is related to the excellent answer by Youssef. I love OnSendingHeaders callback. I can now add the response headers without worrying about switching streams. Anyways, here is my question. Is it possible to read the response body inside the callback, like so. public override async Task Invoke(OwinRequest request, OwinResponse response) { request.OnSendingHeaders(state => { var resp = (OwinResponse)state; // Here, I want to convert resp, which is OwinResponse // to