System.Net.HttpClient.THTTPClient.DoExecute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DoExecute(const ARequestMethod: string; const AURI: TURI;  const ASourceStream, AContentStream: TStream; const AHeaders: TNetHeaders): IURLResponse; override;

C++

virtual System::Net::Urlclient::_di_IURLResponse __fastcall DoExecute(const System::UnicodeString ARequestMethod, const System::Net::Urlclient::TURI &AURI, System::Classes::TStream* const ASourceStream, System::Classes::TStream* const AContentStream, const System::DynamicArray<System::Net::Urlclient::TNameValuePair> AHeaders);

Properties

Type Visibility Source Unit Parent
function protected
System.Net.HttpClient.pas
System.Net.HTTPClient.hpp
System.Net.HttpClient THTTPClient

Description

Executes the specified request and returns the response.

System.Net.HttpClient.THTTPClient.DoExecute inherits from System.Net.URLClient.TURLClient.DoExecute. All content below this line refers to System.Net.URLClient.TURLClient.DoExecute.

Note: Subclasses of TURLClient must provide their own implementation of DoExecute, which should work as described below. When you call TURLClient.DoExecute, it raises an ENetURIClientException exception.

Executes the specified request and returns the response.

The DoExecute protected method executes the specified request and returns the response. The specific TURLClient must override the method.

Input arguments for the request are:

ARequestMethod Request method used.
AURI URI string that contains the information for the request.
ASourceStream Stream to provide the request data.
AContentStream Stream to store the response data.
AHeaders Additional headers to be passed to the request.

See Also