开发者

ASP.NET: HttpApplication lifecycle

开发者 https://www.devze.com 2022-12-11 20:14 出处:网络
In an HttpModule, I\'d like to intercept the Response after the HttpResponse.Headers collection has been set but before the body of the Response has been added to the Response Stream. Would this be on

In an HttpModule, I'd like to intercept the Response after the HttpResponse.Headers collection has been set but before the body of the Response has been added to the Response Stream. Would this be on the HttpContext.开发者_StackOverflowCurrent.PreSendRequestContent event?


No, it would be HttpApplication.PreSendRequestHeaders and there might be content already in the Response stream (even the entire body) waiting to be sent after the headers.

0

精彩评论

暂无评论...
验证码 换一张
取 消