TCnHttpClient.PostAsync(_Uri,_HttpContent,_CancellationToken) Method

Send a POST request with a cancellation token as an asynchronous operation.

Namespace: CNClrLib.Component.HttpClient
public
 function PostAsync(RequestUri: _Uri; Content: _HttpContent; CancellationToken: _CancellationToken): _GenericTask; overload;

Parameters

RequestUri
Type: System.Void

The Uri the request is sent to.

Content
Type: _HttpContent

The HTTP request content sent to the server.

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>.