RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebAppComponents.OnAfterDispatch Event

Occurs after the WebSnap application generates the content of a response message.

Pascal
property OnAfterDispatch: THTTPMethodEvent;
C++
__property THTTPMethodEvent OnAfterDispatch;

Write an AfterDispatch event handler to perform any final actions before sending a response back to the Web browser that sent the WebSnap application a request. OnAfterDispatch occurs after the other components in the WebSnap application have attempted to generate a response for the current request. It does not occur if the response message has already been sent back to the caller. 

If the AfterDispatch event handler sets the Handled parameter to true, the WebSnap application sends the response back to the caller after the event handler exits. If it sets the Handled parameter to false, the WebSnap application does not send the response message.

Note: Although TMultiModuleWebAppServices introduces the OnAfterDispatch event, it never calls the event handler. Descendant classes add the code to generate this event after dispatching a request message.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!