/// <summary> /// Perform an http request for PUT method with content /// </summary> /// <param name="source"></param> /// <param name="content"></param> /// <param name="cancellationToken"></param> /// <returns></returns> public static Task <HttpResponseMessage> PutRequestAsync(this IHttpSendRequest source, HttpContent content, CancellationToken cancellationToken = default) { return(source.SendRequestAsync(HttpMethod.Put, content, cancellationToken)); }
/// <summary> /// Perform an http request for DELETE method /// </summary> /// <param name="source"></param> /// <param name="cancellationToken"></param> /// <returns></returns> public static Task <HttpResponseMessage> DeleteRequestAsync(this IHttpSendRequest source, CancellationToken cancellationToken = default) { return(source.SendRequestAsync(HttpMethod.Delete, cancellationToken)); }