System.Net.URLClient.TURLClient.EndAsyncURL

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function EndAsyncURL(const AAsyncResult: IAsyncResult): IURLResponse; overload;
class function EndAsyncURL(const AAsyncResult: IURLResponse): IURLResponse; overload;

C++

__classmethod _di_IURLResponse __fastcall EndAsyncURL(const System::Types::_di_IAsyncResult AAsyncResult)/* overload */;
__classmethod _di_IURLResponse __fastcall EndAsyncURL(const _di_IURLResponse AAsyncResult)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Net.URLClient.pas
System.Net.URLClient.hpp
System.Net.URLClient TURLClient

Description

Ensures that the specified response succeeded, or raises an exception if the response failed.

You usually call EndAsyncURL inside the callback function or event handler of your asynchronous request, where you know that the response data has been received already. However, you can actually call EndAsyncURL at any moment, which stops the program execution until the response data is received, effectively turning the asynchronous request into a synchronous request.

See Also