1

在 HttpModule 中,我想在设置 HttpResponse.Headers 集合之后但在将响应主体添加到响应流之前拦截响应。这会发生在 HttpContext.Current.PreSendRequestContent 事件上吗?

4

1 回答 1

0

不,它将是HttpApplication.PreSendRequestHeaders并且响应流(甚至整个正文)中可能已经有内容等待在标头之后发送。

于 2009-11-17T01:15:02.897 回答