diff options
author | Rory& <root@rory.gay> | 2024-08-23 02:55:07 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-08-23 02:55:07 +0200 |
commit | f50ed7ccc4347907d3c5ec6b68e1b84c4e0a7a0e (patch) | |
tree | d77d1d1f30e0ea01051561d8caaadeed2fdcf439 /LibMatrix/Extensions/MatrixHttpClient.Single.cs | |
parent | Minor cleanup (diff) | |
download | LibMatrix-f50ed7ccc4347907d3c5ec6b68e1b84c4e0a7a0e.tar.xz |
Synapse admin API stuff, a mass of other changes
Diffstat (limited to 'LibMatrix/Extensions/MatrixHttpClient.Single.cs')
-rw-r--r-- | LibMatrix/Extensions/MatrixHttpClient.Single.cs | 5 |
1 files changed, 5 insertions, 0 deletions
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 |