Web.HTTPApp.TCustomWebFileDispatcher.BeforeDispatch
Delphi
property BeforeDispatch: TDispatchFileEvent read FBeforeDispatch write FBeforeDispatch;
C++
__property TDispatchFileEvent BeforeDispatch = {read=FBeforeDispatch, write=FBeforeDispatch};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | TCustomWebFileDispatcher |
Description
Occurs before the dispatcher tries to match the HTTP request message with any of its action items.
Write a BeforeDispatch event handler to preprocess all HTTP file request messages. A BeforeDispatch event handler can enable or disable the action items appropriate to the file web messages, begin filling out the object file, or provide any other necessary preprocessing.
If the BeforeDispatch event handler finishes filling out the object file, it should change the Handled
parameter to True so the dispatcher will not send the request on to any of the action items.
If the BeforeDispatch event handler sets the Handled
parameter to True but does not send the response, the Web dispatcher will generate an AfterDispatch event.
See Also