System.Net.HttpClientComponent.TNetHTTPClient.OnReceiveData
Delphi
property OnReceiveData: TReceiveDataEvent read FOnReceiveData write SetOnReceiveData;
C++
__property System::Net::Httpclient::TReceiveDataEvent OnReceiveData = {read=FOnReceiveData, write=SetOnReceiveData};
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| event | published | System.Net.HTTPClientComponent.pas System.Net.HTTPClientComponent.hpp | System.Net.HttpClientComponent | TNetHTTPClient | 
Description
Occurs one or more times while your HTTP client receives response data for a request, and it indicates the current progress of the response download.
The event handler of OnReceiveData receives the following parameters:
- Senderis the HTTP request that triggered the response.
- AContentLengthis the expected length of the response, in number of bytes.
- AReadCountis the length of the response data that has been downloaded so far, in number of bytes.
- Abortis a Boolean parameter that you can set to- Truein order to cancel the download of the response data.