System.Net.HttpClientComponent.TNetHTTPRequest.DoExecute
Delphi
function DoExecute(const ARequest: IHTTPRequest; const AResponseContent: TStream; const AHeaders: TNetHeaders): IHTTPResponse;
C++
System::Net::Httpclient::_di_IHTTPResponse __fastcall DoExecute(const System::Net::Httpclient::_di_IHTTPRequest ARequest, System::Classes::TStream* const AResponseContent, const System::DynamicArray<System::Net::Urlclient::TNameValuePair> AHeaders);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Net.HTTPClientComponent.pas System.Net.HTTPClientComponent.hpp |
System.Net.HttpClientComponent | TNetHTTPRequest |
Description
Executes a request.
DoExecute returns an HTTP response.
The DoExecute method accepts the following parameters:
ARequest
: The request to execute.AResponseContent
: A stream that stores the response data.AHeaders
: Headers to pass with the request.
This method fires the OnRequestCompleted event and if an exception occurs, the OnRequestError event.