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:
Sender
is your HTTP request.AContentLength
is the expected length of the response, in number of bytes.AReadCount
is the length of the response data that has been downloaded so far, in number of bytes.Abort
is a Boolean parameter that you can set toTrue
in order to cancel the download of the response data.