OnAfterDispatch

<< Click to Display Table of Contents >>

Navigation:  Classes > TIWServerControllerBase > Events >

OnAfterDispatch

Use this event to make any pos-processment after the your application dispatches a client request. You need to include the units IW.Http.Request (THttpRequest) and IW.Http.Reply (THttpReply) in your uses clause, if not already included.

 

procedure TIWServerController.IWServerControllerBaseAfterDispatch(

 Request: THttpRequest; aReply: THttpReply);

begin

 if (aReply.Code <> 404) then begin

   Log('User agent: ' + Request.UserAgent);

   Log('Content Type: ' + aReply.ContentType);

 end;

end;

 

SIGNATURE=IWServerControllerBase.TIWServerControllerBase.OnAfterDispatch

 

ETYPE=Event

 

Declaration:

Delphi:

published property OnAfterDispatch: TOnDispatch;

C++:

__published: __property TOnDispatch OnAfterDispatch;

 

Description: Events