From af7bff71b20ffd4a74297a38e9eacfcc7714a48e Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Thu, 28 Nov 2024 22:42:13 +0100 Subject: [PATCH] + BytecodeApi.Rest.RestClient.Purge --- BytecodeApi.Rest/RestClient.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/BytecodeApi.Rest/RestClient.cs b/BytecodeApi.Rest/RestClient.cs index 52eac19..0879c6f 100644 --- a/BytecodeApi.Rest/RestClient.cs +++ b/BytecodeApi.Rest/RestClient.cs @@ -115,6 +115,20 @@ protected RestRequest Delete(string url) return new(this, HttpMethod.Delete, url); } /// + /// Performs a PURGE request on the specified URL. + /// + /// The URL to perform the request on. + /// + /// A object to be used to further refine, and then send the request. + /// + protected RestRequest Purge(string url) + { + Check.ObjectDisposed(Disposed); + Check.ArgumentNull(url); + + return new(this, new("PURGE"), url); + } + /// /// Performs a HEAD request on the specified URL. /// /// The URL to perform the request on.