using System.Net.Http; using System.Threading.Tasks; namespace Flurl.Http { public static class DeleteExtensions { /// /// Sends an asynchronous DELETE request. /// /// A Task whose result is the received HttpResponseMessage. public static Task DeleteAsync(this FlurlClient client) { return client.HttpClient.DeleteAsync(client.Url); } /// /// Creates a FlurlClient from the URL and sends an asynchronous DELETE request. /// /// A Task whose result is the received HttpResponseMessage. public static Task DeleteAsync(this string url) { return new FlurlClient(url).DeleteAsync(); } /// /// Creates a FlurlClient from the URL and sends an asynchronous DELETE request. /// /// A Task whose result is the received HttpResponseMessage. public static Task DeleteAsync(this Url url) { return new FlurlClient(url).DeleteAsync(); } } }