Method PutAsync
PutAsync(IHttpClient, string, byte[], string, CancellationToken)
发送一个 PUT 请求,body 为 raw bytes,附带指定 contentType。
public static Task<IHttpResponse> PutAsync(this IHttpClient client, string url, byte[] body, string contentType = "application/octet-stream", CancellationToken ct = default)
Parameters
clientIHttpClienturlstringbodybyte[]contentTypestringctCancellationToken