Datasnap.DSHTTP.TDispatchFileEvent

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
type
typedef
Visibility: public
Source:
Datasnap.DSHTTP.pas
Datasnap.DSHTTP.hpp
Unit: Datasnap.DSHTTP
Parent: Datasnap.DSHTTP

Delphi

TDispatchFileEvent = procedure (Sender: TObject; const AFileName: string;
AContext: TDSHTTPContext; Request: TDSHTTPRequest;
Response: TDSHTTPResponse; var Handled: Boolean) of object;

C++

typedef void __fastcall (__closure *TDispatchFileEvent)(System::TObject* Sender, const System::UnicodeString AFileName, Datasnap::Dshttpcommon::TDSHTTPContext* AContext, Datasnap::Dshttpcommon::TDSHTTPRequest* Request, Datasnap::Dshttpcommon::TDSHTTPResponse* Response, bool &Handled);

Description

Event for file dispacher.

TDispatchFileEvent is the event used by TDSCustomHTTPServiceFileDispatcher to perform actions before and after the dispatch of a file.

The input parameters provide information on the: file being dispatched, context, response information, and request information of the DataSnap HTTP connection.

See Also