diff --git a/src/WebDav.Client/IWebDavClient.cs b/src/WebDav.Client/IWebDavClient.cs
index 9b46f33..76f6520 100644
--- a/src/WebDav.Client/IWebDavClient.cs
+++ b/src/WebDav.Client/IWebDavClient.cs
@@ -228,6 +228,22 @@ public interface IWebDavClient : IDisposable
/// An instance of .
Task PutFile(Uri requestUri, Stream stream, PutFileParameters parameters);
+ ///
+ /// Requests the resource to be stored under the request URI.
+ ///
+ /// A string that represents the request URI.
+ /// The content to pass to the request.
+ /// An instance of .
+ Task PutFile(string requestUri, HttpContent content);
+
+ ///
+ /// Requests the resource to be stored under the request URI.
+ ///
+ /// The to request.
+ /// The content to pass to the request.
+ /// An instance of .
+ Task PutFile(Uri requestUri, HttpContent content);
+
///
/// Requests the resource to be stored under the request URI.
///
diff --git a/src/WebDav.Client/WebDavClient.cs b/src/WebDav.Client/WebDavClient.cs
index 89d53c3..b5e3df7 100644
--- a/src/WebDav.Client/WebDavClient.cs
+++ b/src/WebDav.Client/WebDavClient.cs
@@ -256,6 +256,16 @@ public Task PutFile(Uri requestUri, Stream stream, PutFileParame
return PutFile(requestUri, new StreamContent(stream), parameters);
}
+ public Task PutFile(string requestUri, HttpContent content)
+ {
+ return PutFile(CreateUri(requestUri), content, new PutFileParameters());
+ }
+
+ public Task PutFile(Uri requestUri, HttpContent content)
+ {
+ return PutFile(requestUri, content, new PutFileParameters());
+ }
+
public Task PutFile(string requestUri, HttpContent content, PutFileParameters parameters)
{
return PutFile(CreateUri(requestUri), content, parameters);