TCnHttpClient.SendAsync(_HttpRequestMessage,_CancellationToken) Method

Send an HTTP request as an asynchronous operation.

Namespace: CNClrLib.Component.HttpClient
public
 function SendAsync(Request: _HttpRequestMessage; CancellationToken: _CancellationToken): _GenericTask; overload;

Parameters

Request
Type: System.Void

The HTTP request message to send.

CancellationToken
Type: System.Void

The cancellation token to cancel operation.

Return Value

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