Web.HTTPApp.TWebDispatcher.AfterDispatch
Delphi
property AfterDispatch: THTTPMethodEvent read FAfterDispatch write FAfterDispatch;
C++
__property AfterDispatch;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | TWebDispatcher |
Description
Occurs after the HTTP response message has been successfully filled out by the action items but not yet sent.
Web.HTTPApp.TWebDispatcher.AfterDispatch inherits from Web.HTTPApp.TCustomWebDispatcher.AfterDispatch. All content below this line refers to Web.HTTPApp.TCustomWebDispatcher.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 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.