$darkmode

| Qore HttpClientDataProvider Module Reference 1.0.1

HttpClientPostDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26 namespace HttpClientDataProvider {
28 class HttpClientPostDataProvider : public AbstractDataProvider {
29
30 public:
32 HTTPClient http;
33
35 const ProviderInfo = <DataProviderInfo>{
36 "name": "post",
37 "desc": "HTTP POST data provider; makes a `POST` request to an HTTP server and returns the response",
38 "type": "HttpClientPostDataProvider",
39 "constructor_options": HttpClientDataProvider::ConstructorOptions,
40 "supports_request": True,
41 };
42
44 const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
45 AbstractDataProvider::DataProviderSummaryInfoKeys
46 });
47
49 const RequestType = new HttpClientCallRequestDataType();
50
52 const ResponseType = new HttpClientCallResponseDataType();
53
55 constructor(*hash<auto> options);
56
57
59 constructor(HTTPClient http);
60
61
63 string getName();
64
65
67
72 protected:
73 auto doRequestImpl(auto req, *hash<auto> request_options);
74 public:
75
76
78
80 protected:
81 *AbstractDataProviderType getRequestTypeImpl();
82 public:
83
84
86
88 protected:
89 *AbstractDataProviderType getResponseTypeImpl();
90 public:
91
92
94 hash<DataProviderInfo> getStaticInfoImpl();
95
96};
97};
HttpClientDataProvider::HttpClientCallRequestDataType
Data type for HTTP call requests.
Definition: HttpClientCallRequestDataType.qc.dox.h:27
HttpClientDataProvider::HttpClientCallResponseDataType
Data type for HTTP call responses.
Definition: HttpClientCallResponseDataType.qc.dox.h:27
HttpClientDataProvider::HttpClientDataProvider::ConstructorOptions
const ConstructorOptions
Constructor arguments.
Definition: HttpClientDataProvider.qc.dox.h:42
HttpClientDataProvider::HttpClientPostDataProvider
The HTTP post data provider class.
Definition: HttpClientPostDataProvider.qc.dox.h:28
HttpClientDataProvider::HttpClientPostDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
HttpClientDataProvider::HttpClientPostDataProvider::getName
string getName()
Returns the data provider name.
HttpClientDataProvider::HttpClientPostDataProvider::doRequestImpl
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
HttpClientDataProvider::HttpClientPostDataProvider::getResponseTypeImpl
*AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
HttpClientDataProvider::HttpClientPostDataProvider::constructor
constructor(HTTPClient http)
Creates the object from an HTTP connection.
HttpClientDataProvider::HttpClientPostDataProvider::ProviderInfo
const ProviderInfo
Provider info.
Definition: HttpClientPostDataProvider.qc.dox.h:35
HttpClientDataProvider::HttpClientPostDataProvider::getStaticInfoImpl
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
HttpClientDataProvider::HttpClientPostDataProvider::ResponseType
const ResponseType
Response type.
Definition: HttpClientPostDataProvider.qc.dox.h:52
HttpClientDataProvider::HttpClientPostDataProvider::http
HTTPClient http
HTTP connection.
Definition: HttpClientPostDataProvider.qc.dox.h:32
HttpClientDataProvider::HttpClientPostDataProvider::ProviderSummaryInfo
const ProviderSummaryInfo
Provider summary info.
Definition: HttpClientPostDataProvider.qc.dox.h:44
HttpClientDataProvider::HttpClientPostDataProvider::getRequestTypeImpl
*AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
HttpClientDataProvider::HttpClientPostDataProvider::RequestType
const RequestType
Request type.
Definition: HttpClientPostDataProvider.qc.dox.h:49
True
const True
HttpClientDataProvider
Qore HttpClientDataProvider module definition.
Definition: HttpClientCallDataProvider.qc.dox.h:26