System.Net.HttpClientComponent.TNetHTTPRequest.DoExecute
Delphi
function DoExecute(const ARequest: IHTTPRequest; const AResponseContent: TStream; const AHeaders: TNetHeaders;
AOwnsSourceStream: Boolean = False): 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, bool AOwnsSourceStream = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Net.HTTPClientComponent.pas System.Net.HTTPClientComponent.hpp |
System.Net.HttpClientComponent | TNetHTTPRequest |
Description
Executes a request and returns an HTTP response.
The DoExecute method receives the following parameters:
ARequest
is the request to execute.AResponseContent
is a stream that stores the response data.AHeaders
contains headers to pass with the request.- If the request is asynchronous,
AOwnsSourceStream
determines whether the source stream ofARequest
should be freed after the request is sent (False
, default) or not (True
).
This method fires the OnRequestCompleted event and if an exception occurs, the OnRequestError event.