Search code examples
asp.nethttpmodulepipeline

Is there an event in the request pipeline where both Request and Response are available and populated?


I need to bind to an event in the request pipeline where both the Request and Response are populated. The Request is simple, but I need the StatusCode off the Response object. At what point in the pipeline is the Response populated?


Solution

  • Take a look at this page under the "The request is processed by the HttpApplication pipeline" section. The "EndRequest" event should have what you need.