Skip to content

Commit

Permalink
+ BytecodeApi.Rest.RestClient.Purge
Browse files Browse the repository at this point in the history
  • Loading branch information
bytecode77 committed Nov 28, 2024
1 parent a0ee6a1 commit af7bff7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions BytecodeApi.Rest/RestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,20 @@ protected RestRequest Delete(string url)
return new(this, HttpMethod.Delete, url);
}
/// <summary>
/// Performs a PURGE request on the specified URL.
/// </summary>
/// <param name="url">The URL to perform the request on.</param>
/// <returns>
/// A <see cref="RestRequest" /> object to be used to further refine, and then send the request.
/// </returns>
protected RestRequest Purge(string url)
{
Check.ObjectDisposed<RestClient>(Disposed);
Check.ArgumentNull(url);

return new(this, new("PURGE"), url);
}
/// <summary>
/// Performs a HEAD request on the specified URL.
/// </summary>
/// <param name="url">The URL to perform the request on.</param>
Expand Down

0 comments on commit af7bff7

Please sign in to comment.