From f50ed7ccc4347907d3c5ec6b68e1b84c4e0a7a0e Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 23 Aug 2024 02:55:07 +0200 Subject: Synapse admin API stuff, a mass of other changes --- LibMatrix/Extensions/MatrixHttpClient.Single.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'LibMatrix/Extensions/MatrixHttpClient.Single.cs') diff --git a/LibMatrix/Extensions/MatrixHttpClient.Single.cs b/LibMatrix/Extensions/MatrixHttpClient.Single.cs index a5e94e5..3c8aea4 100644 --- a/LibMatrix/Extensions/MatrixHttpClient.Single.cs +++ b/LibMatrix/Extensions/MatrixHttpClient.Single.cs @@ -242,5 +242,10 @@ public class MatrixHttpClient { }; return await SendAsync(request, cancellationToken); } + + public async Task DeleteAsync(string url) { + var request = new HttpRequestMessage(HttpMethod.Delete, url); + await SendAsync(request); + } } #endif \ No newline at end of file -- cgit 1.4.1