diff --git a/src/HttpFile.cs b/src/HttpFile.cs
index dca9746..ad88080 100644
--- a/src/HttpFile.cs
+++ b/src/HttpFile.cs
@@ -20,6 +20,15 @@ public HttpFile(Uri uri)
{
}
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The http address to GET for the file content.
+ public HttpFile(string uri)
+ : this(uri, new HttpClient(new HttpClientHandler()))
+ {
+ }
+
///
/// Creates a new instance of .
///
@@ -38,8 +47,9 @@ public HttpFile(Uri uri, HttpClient httpClient)
/// Creates a new instance of .
///
/// The http address to GET for the file content.
- public HttpFile(string uri)
- : this(new Uri(uri))
+ /// The client to use for requests.
+ public HttpFile(string uri, HttpClient httpClient)
+ : this(new Uri(uri), httpClient)
{
}
diff --git a/src/OwlCore.Storage.csproj b/src/OwlCore.Storage.csproj
index 484c3cc..5709d3e 100644
--- a/src/OwlCore.Storage.csproj
+++ b/src/OwlCore.Storage.csproj
@@ -14,7 +14,7 @@
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb
Arlo Godfrey
- 0.9.0
+ 0.9.1
OwlCore
The most flexible file system abstraction, ever. Built in partnership with the UWP Community.
@@ -23,6 +23,10 @@
LICENSE.txt
logo.png
+--- 0.9.1 ---
+[New]
+HttpFile was given a new constructor accepting an HttpClient: HttpFile(string uri, HttpClient httpClient).
+
--- 0.9.0 ---
[Breaking]
The HttpFile.HttpMessageHandler property has been removed.