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:
ARequestis the request to execute.AResponseContentis a stream that stores the response data.AHeaderscontains headers to pass with the request.- If the request is asynchronous,
AOwnsSourceStreamdetermines whether the source stream ofARequestshould 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.