RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMultiModuleWebAppServices.DoBeforeDispatch Method

Generates an OnBeforeDispatch event.

Pascal
function DoBeforeDispatch(Request: TWebRequest; Response: TWebResponse): Boolean;
C++
__fastcall Boolean DoBeforeDispatch(TWebRequest Request, TWebResponse Response);

TMultiModuleWebAppServices descendants call DoBeforeDispatch to generate an OnBeforeDispatch event before dispatching a request message to the other components in the WebSnap application. 

Request is the current request message that needs to be handled. 

Response is the response message that needs to be filled out. 

DoBeforeDispatch returns true if the OnBeforeDispatch event handler has handled the event. When DoBeforeDispatch returns true, the WebSnap application does not need to continue processing the request. 

 

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