TCnHttpClient.GetAsync(String,THttpCompletionOption) Method

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

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

Parameters

RequestUri
Type: String

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.

Return Value

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