Application. Pre Send Request Headers Event
Occurs just before ASP.NET sends HTTP headers to the client.
public: event EventHandler ^ PreSendRequestHeaders;
public event EventHandler PreSendRequestHeaders;
member this.PreSendRequestHeaders : EventHandler
Public Custom Event PreSendRequestHeaders As EventHandler
For more information about how to handle events, see Handling and Raising Events.
Do not use
PreSendRequestHeaders with managed modules that implement
IHttpModule. Setting these properties can cause issues with asynchronous requests. The combination of Application Requested Routing (ARR) and websockets might lead to access violation exceptions that can cause w3wp to crash. For example, iiscore!W3_CONTEXT_BASE::GetIsLastNotification+68 in iiscore.dll has caused an access violation exception (0xC0000005).