src/Utils/DiLibHttpClient/IDiLibHttpClient.cs
/// <summary>
///     Posts payload to given url, where http method is POST.
/// </summary>
/// <param name="url"> The url where to the object will be posted. </param>
/// <param name="payload"> Object to be posted. </param>
/// <param name="cancellationToken">
///     <see cref="CancellationToken"/>
/// </param>
/// <typeparam name="T"> Type will be posted, and the return result Type too. </typeparam>
/// <returns> HttpResponseMessage with Status 200 and content where type is T. </returns>
/// <exception cref="DiLibHttpException">
///     Any error happen.
/// </exception>
Posts payload to given url, where http method is POST.
Posts payload to given url where http method is POST .
Task<DilibHttpClientResponse<T>> PostAsync<T>(
            string url,
            T payload,
            CancellationToken cancellationToken = default)
            where T : class;
Task < DilibHttpClientResponse < T > > PostAsync < T > ( string url , T payload , CancellationToken cancellationToken = default ) where T : class ;
Posts payload to given url, where http method is POST.
Posts payload to given url where http method is POST .
HttpResponseMessage with Status 200 and content where type is T.
HttpResponseMessage with Status 200 and content where type is T .
Any error happen.
Any error happen .
url
string
The url where to the object will be posted.
The url where to the object will be posted .
payload
T
Object to be posted.
Object to be posted .
cancellationToken
CancellationToken
None
typeparam
Type will be posted, and the return result Type too.
Type will be posted and the return result Type too .