Method PostJsonAsync
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
clientIHttpClienturlstringjsonstringctCancellationToken