Data.Cloud.AmazonAPI.TAmazonBasicService.IssueRequest
Delphi
function IssueRequest(URL: string; QueryParams: TStringList; ResponseInfo: TCloudResponseInfo; out ResultString: string; RequestStream: TStream = nil): TCloudHTTP; overload;
function IssueRequest(URL: string; QueryParams: TStringList; ResponseInfo: TCloudResponseInfo; RequestStream: TStream = nil): TCloudHTTP; overload;
C++
Data::Cloud::Cloudapi::TCloudHTTP* __fastcall IssueRequest(System::UnicodeString URL, System::Classes::TStringList* QueryParams, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo, /* out */ System::UnicodeString &ResultString, System::Classes::TStream* RequestStream = (System::Classes::TStream*)(0x0))/* overload */;
Data::Cloud::Cloudapi::TCloudHTTP* __fastcall IssueRequest(System::UnicodeString URL, System::Classes::TStringList* QueryParams, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo, System::Classes::TStream* RequestStream = (System::Classes::TStream*)(0x0))/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Data.Cloud.AmazonAPI.pas Data.Cloud.AmazonAPI.hpp |
Data.Cloud.AmazonAPI | TAmazonBasicService |
Description
Issues the HTTP request, as either a GET or a POST.
There are two IssueRequest overloaded methods. With the first one you can obtain the string representation of the response content, using ResultString
.
If the RequestStream
is specified, then a POST request is issued, the stream is used in the HTTP request as the body, and the query parameters are placed in the URL of the request. Otherwise, if it is nil, then the CanonicalizedQueryString is built from the given information and is placed in the body of the request, which is issued as a GET.
The following table shows the significance of the parameters:
Parameter | Description |
---|---|
|
The request URL, without any query parameters |
|
The query parameters of the request |
|
The optional response info to populate, or nil |
|
The string representation of the response content |
|
The request stream to set as the body of the request, or nil |