Table of Contents

Method PostJsonAsync

Namespace
CurlUnity.Http

PostJsonAsync(IHttpClient, string, string, CancellationToken)

application/json 发送 POST 请求。json 会按 UTF-8 编码。

public static Task<IHttpResponse> PostJsonAsync(this IHttpClient client, string url, string json, CancellationToken ct = default)

Parameters

client IHttpClient
url string
json string
ct CancellationToken

Returns

Task<IHttpResponse>