TCnHttpClient.GetAsync(_Uri,THttpCompletionOption,_CancellationToken) Method

Send a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.

Namespace: CNClrLib.Component.HttpClient
public
 function GetAsync(RequestUri: _Uri; CompletionOption: THttpCompletionOption; CancellationToken: _CancellationToken): _GenericTask; overload;

Parameters

RequestUri
Type: System.Void

The Uri the request is sent to.

CompletionOption
Type: System.Void

An HTTP completion option value that indicates when the operation should be considered completed.

CancellationToken
Type: System.Void

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value

The task object representing the asynchronous operation. The Return type in .Net is Task<HttpResponseMessage>.