API:Datasnap.DSProxyDispatcher.TDSProxyDispatcher.AfterDispatch
Delphi
property AfterDispatch: TDispatchFileEvent read FAfterDispatch write FAfterDispatch;
C++
__property AfterDispatch;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Datasnap.DSProxyDispatcher.pas Datasnap.DSProxyDispatcher.hpp |
Datasnap.DSProxyDispatcher | TDSProxyDispatcher |
Description
Occurs after the HTTP response message has been successfully filled out by the action items but not yet sent.
Datasnap.DSProxyDispatcher.TDSProxyDispatcher.AfterDispatch inherits from Web.HTTPApp.TCustomWebFileDispatcher.AfterDispatch. All content below this line refers to Web.HTTPApp.TCustomWebFileDispatcher.AfterDispatch.
Occurs after the HTTP response message has been successfully filled out by the action items but not yet sent.
Write an AfterDispatch event handler to provide a final check of the HTTP file message before it is sent to the Web client. An AfterDispatch event handler can let a file stand as is, change the file, 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.
An AfterDispatch event handler can:
- Make no changes to the file.
- Change the file.
- 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.
See Also
- Web.HTTPApp.TCustomWebFileDispatcher.BeforeDispatch
- Web.HTTPApp.TWebResponse
- Datasnap.DSProxyDispatcher.TDSProxyDispatcher