System.Net.HttpClientComponent.TNetHTTPRequest.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 | TNetHTTPRequest |
Description
Occurs one or more times while your request receives response data, and it indicates the current progress of the response download.
The event handler of OnReceiveData receives the following parameters:
Senderis your HTTP request.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 toTruein order to cancel the download of the response data.