Datasnap.DSHTTP.TDSResponseHandlerFactory.CreateResponseHandler

From RAD Studio API Documentation
Jump to: navigation, search

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 */;

Properties

Type Visibility Source Unit Parent
function public
Datasnap.DSHTTP.pas
Datasnap.DSHTTP.hpp
Datasnap.DSHTTP TDSResponseHandlerFactory

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.