RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWebDispatcher.AfterDispatch Event

Occurs after the HTTP response message has been successfully filled out by the action items but not yet sent.

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

Write an AfterDispatch event handler to provide a final check of the HTTP response message before it is sent to the Web client. An AfterDispatch event handler can let a response stand as is, change the response, send the response, or change the Handled parameter to False to prevent the Web application from sending the response. 

The AfterDispatch event does not occur if all of the action items indicate that the response was not handled, or if the response is sent by any of the action items. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!