简体   繁体   中英

ASP.NET: HttpApplication lifecycle

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.Current.PreSendRequestContent event?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM