namespace B1SLayer
{
    internal static class MultipartExtensions
    {
        internal static Task<IFlurlResponse> PatchMultipartAsync(this IFlurlRequest request, Action<CapturedMultipartContent> buildContent, CancellationToken cancellationToken = default(CancellationToken))
        {
            var cmc = new CapturedMultipartContent(request.Settings);
            buildContent(cmc);
            return request.SendAsync(new HttpMethod("PATCH"), cmc, cancellationToken);
        }
    }