Loading...
Searching...
No Matches
RestClientPostDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace RestClientDataProvider {
class RestClientPostDataProvider : public AbstractDataProvider {
public:
RestClient rest;
const ProviderInfo = <DataProviderInfo>{
"name": "post",
"desc": "REST POST data provider; makes a `POST` request to a REST server and returns the response",
"type": "RestClientPostDataProvider",
"constructor_options": RestClientDataProvider::ConstructorOptions,
"supports_request": True,
};
const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
AbstractDataProvider::DataProviderSummaryInfoKeys
});
const RequestType = new RestClientCallRequestDataType();
const ResponseType = new RestClientCallResponseDataType();
constructor(*hash<auto> options);
constructor(RestClient rest);
string getName();
protected:
auto doRequestImpl(auto req, *hash<auto> request_options);
public:
protected:
*AbstractDataProviderType getRequestTypeImpl();
public:
protected:
*AbstractDataProviderType getResponseTypeImpl();
public:
hash<DataProviderInfo> getStaticInfoImpl();
};
};
RestClientDataProvider::RestClientCallRequestDataType
Data type for REST call requests.
Definition: RestClientCallRequestDataType.qc.dox.h:27
RestClientDataProvider::RestClientCallResponseDataType
Data type for REST call responses.
Definition: RestClientCallResponseDataType.qc.dox.h:27
RestClientDataProvider::RestClientDataProvider::ConstructorOptions
const ConstructorOptions
Constructor arguments.
Definition: RestClientDataProvider.qc.dox.h:42
RestClientDataProvider::RestClientPostDataProvider
The REST client POST data provider class.
Definition: RestClientPostDataProvider.qc.dox.h:28
RestClientDataProvider::RestClientPostDataProvider::rest
RestClient rest
REST client connection.
Definition: RestClientPostDataProvider.qc.dox.h:32
RestClientDataProvider::RestClientPostDataProvider::ProviderSummaryInfo
const ProviderSummaryInfo
Provider summary info.
Definition: RestClientPostDataProvider.qc.dox.h:44
RestClientDataProvider::RestClientPostDataProvider::doRequestImpl
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
RestClientDataProvider::RestClientPostDataProvider::getStaticInfoImpl
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
RestClientDataProvider::RestClientPostDataProvider::ResponseType
const ResponseType
Response type.
Definition: RestClientPostDataProvider.qc.dox.h:52
RestClientDataProvider::RestClientPostDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
RestClientDataProvider::RestClientPostDataProvider::getName
string getName()
Returns the data provider name.
RestClientDataProvider::RestClientPostDataProvider::ProviderInfo
const ProviderInfo
Provider info.
Definition: RestClientPostDataProvider.qc.dox.h:35
RestClientDataProvider::RestClientPostDataProvider::getResponseTypeImpl
*AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
RestClientDataProvider::RestClientPostDataProvider::RequestType
const RequestType
Request type.
Definition: RestClientPostDataProvider.qc.dox.h:49
RestClientDataProvider::RestClientPostDataProvider::getRequestTypeImpl
*AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
RestClientDataProvider::RestClientPostDataProvider::constructor
constructor(RestClient rest)
Creates the object from a REST connection.
RestClientDataProvider
Qore RestClientDataProvider module definition.
Definition: RestClientCallDataProvider.qc.dox.h:26
RestClient