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.