Datasnap.DSHTTP.TDSResponseHandlerFactory.CreateResponseHandler
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: Datasnap.DSHTTP.pas Datasnap.DSHTTP.hpp
| |
Unit: Datasnap.DSHTTP | |
Parent: TDSResponseHandlerFactory |
Delphi
class function CreateResponseHandler(DSService: TDSService;
RequestInfo: TDSHTTPRequest;
CommandType: TDSHTTPCommandType = TDSHTTPCommandType.hcUnknown;
HTTPServer: TDSHTTPServer = nil): TDSServiceResponseHandler; overload;
class function CreateResponseHandler(DSService: TDSService;
RequestInfo: TDSHTTPRequest;
CommandType: TDSHTTPCommandType;
HTTPServer: TDSRESTServer): TDSServiceResponseHandler; overload;
C++
__classmethod Datasnap::Dshttpcommon::TDSServiceResponseHandler* __fastcall CreateResponseHandler(Datasnap::Dsservice::TDSService* DSService, Datasnap::Dshttpcommon::TDSHTTPRequest* RequestInfo, Datasnap::Dshttpcommon::TDSHTTPCommandType CommandType = (Datasnap::Dshttpcommon::TDSHTTPCommandType)(0x0), TDSHTTPServer* HTTPServer = (TDSHTTPServer*)(0x0))/* overload */;
__classmethod Datasnap::Dshttpcommon::TDSServiceResponseHandler* __fastcall CreateResponseHandler(Datasnap::Dsservice::TDSService* DSService, Datasnap::Dshttpcommon::TDSHTTPRequest* RequestInfo, Datasnap::Dshttpcommon::TDSHTTPCommandType CommandType, TDSRESTServer* HTTPServer)/* overload */;
Description
Returns a new instance of the appropriate TDSServiceResponseHandler implementation.
The CreateResponseHandler method returns a new instance of the appropriate TDSServiceResponseHandler implementation, based on the information provided.