TCnHttpClient.PostAsync(String,_HttpContent) Method

Send a POST request to the specified Uri as an asynchronous operation.

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

Parameters

RequestUri
Type: String

The Uri the request is sent to.

Content
Type: _HttpContent

The HTTP request content sent to the server.

Return Value

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