Qore RestClientDataProvider Module Reference  1.0
RestClientGetDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
26 namespace RestClientDataProvider {
28 class RestClientGetDataProvider : public AbstractDataProvider {
29 
30 public:
33 
35  const ProviderInfo = <DataProviderInfo>{
36  "name": "get",
37  "desc": "REST GET data provider; makes a `GET` request to a REST server and returns the response",
38  "type": "RestClientGetDataProvider",
39  "constructor_options": RestClientDataProvider::ConstructorOptions,
40  "supports_request": True,
41  };
42 
44  const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
45  AbstractDataProvider::DataProviderSummaryInfoKeys
46  });
47 
50 
53 
55  constructor(__7_ hash<auto> options);
56 
57 
60 
61 
63  string getName();
64 
65 
67 
72 protected:
73  auto doRequestImpl(auto req, __7_ hash<auto> request_options);
74 public:
75 
76 
79 
81 protected:
82  __7_ AbstractDataProviderType getRequestTypeImpl();
83 public:
84 
85 
87 
89 protected:
90  __7_ AbstractDataProviderType getResponseTypeImpl();
91 public:
92 
93 
95  hash<DataProviderInfo> getStaticInfoImpl();
96 
97 };
98 };
Data type for REST call responses.
Definition: RestClientCallResponseDataType.qc.dox.h:27
Data type for REST client call requests with no message bodies.
Definition: RestClientCallWithoutBodyRequestDataType.qc.dox.h:27
const ConstructorOptions
Constructor arguments.
Definition: RestClientDataProvider.qc.dox.h:39
The REST client GET data provider class.
Definition: RestClientGetDataProvider.qc.dox.h:28
__7_ AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
const ProviderInfo
Provider info.
Definition: RestClientGetDataProvider.qc.dox.h:35
const ProviderSummaryInfo
Provider summary info.
Definition: RestClientGetDataProvider.qc.dox.h:44
auto doRequestImpl(auto req, __7_ hash< auto > request_options)
Makes a request and returns the response.
RestClient rest
REST client connection.
Definition: RestClientGetDataProvider.qc.dox.h:32
__7_ AbstractDataProviderType getRequestTypeImpl()
constructor(RestClient rest)
Creates the object from a REST connection.
constructor(__7_ hash< auto > options)
Creates the object from constructor options.
const ResponseType
Response type.
Definition: RestClientGetDataProvider.qc.dox.h:52
string getName()
Returns the data provider name.
const RequestType
Request type.
Definition: RestClientGetDataProvider.qc.dox.h:49
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
const True
Qore RestClientDataProvider module definition.
Definition: RestClientCallDataProvider.qc.dox.h:26