System.Net.HttpClient.THTTPClient.OnReceiveData
Delphi
property OnReceiveData: TReceiveDataEvent read FOnReceiveData write FOnReceiveData;
C++
__property TReceiveDataEvent OnReceiveData = {read=FOnReceiveData, write=FOnReceiveData};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | System.Net.HttpClient.pas System.Net.HTTPClient.hpp |
System.Net.HttpClient | THTTPClient |
Description
Occurs one or more times while your HTTP client receives response data for one or more requests, and it indicates the current progress of the response download for the specified request.
The event handler of OnReceiveData receives the following parameters:
Sender
is the HTTP request that triggered the response.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 an incoming variable parameter the event handler can set to True to abort data reception.