System.Net.HttpClientComponent.TNetHTTPClient.Asynchronous

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Asynchronous: Boolean read FAsynchronous write FAsynchronous;

C++

__property bool Asynchronous = {read=FAsynchronous, write=FAsynchronous, nodefault};

Properties

Type Visibility Source Unit Parent
property published
System.Net.HTTPClientComponent.pas
System.Net.HTTPClientComponent.hpp
System.Net.HttpClientComponent TNetHTTPClient

Description

Determines whether requests performed using methods of this component are asynchronous (True) or synchronous (False).

Synchronous requests stop the execution of your application until the client receives the response from the server or until an error occurs.
Asynchronous requests do not stop the execution of your applications. For example, users may interact with your application while the request is in progress, and you may perform several requests in parallel.

The Asynchronous property of the HTTP client component only affects requests that you start using methods of the component itself. TNetHTTPRequest objects associated with the client component ignore the value of the Asynchronous property of the client component, and rely exclusively on their own Asynchronous property.

See Also