System.Net.HttpClientComponent.TNetHTTPClient.OnReceiveData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnReceiveData: TReceiveDataEvent read FOnReceiveData write FOnReceiveData;

C++

__property System::Net::Httpclient::TReceiveDataEvent OnReceiveData = {read=FOnReceiveData, write=FOnReceiveData};

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:

  • 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 a Boolean parameter that you can set to True in order to cancel the download of the response data.

See Also