Skip to content

Commit

Permalink
Release 0.9.1
Browse files Browse the repository at this point in the history
- HttpFile was given a new constructor accepting an HttpClient: HttpFile(string uri, HttpClient httpClient).
  • Loading branch information
Arlodotexe committed Nov 15, 2023
1 parent ddecc05 commit 0bbc8c0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 12 additions & 2 deletions src/HttpFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ public HttpFile(Uri uri)
{
}

/// <summary>
/// Creates a new instance of <see cref="HttpFile"/>.
/// </summary>
/// <param name="uri">The http address to GET for the file content.</param>
public HttpFile(string uri)
: this(uri, new HttpClient(new HttpClientHandler()))
{
}

/// <summary>
/// Creates a new instance of <see cref="HttpFile"/>.
/// </summary>
Expand All @@ -38,8 +47,9 @@ public HttpFile(Uri uri, HttpClient httpClient)
/// Creates a new instance of <see cref="HttpFile"/>.
/// </summary>
/// <param name="uri">The http address to GET for the file content.</param>
public HttpFile(string uri)
: this(new Uri(uri))
/// <param name="httpClient">The client to use for requests.</param>
public HttpFile(string uri, HttpClient httpClient)
: this(new Uri(uri), httpClient)
{
}

Expand Down
6 changes: 5 additions & 1 deletion src/OwlCore.Storage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>

<Author>Arlo Godfrey</Author>
<Version>0.9.0</Version>
<Version>0.9.1</Version>
<Product>OwlCore</Product>
<Description>The most flexible file system abstraction, ever. Built in partnership with the UWP Community.

Expand All @@ -23,6 +23,10 @@
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageIcon>logo.png</PackageIcon>
<PackageReleaseNotes>
--- 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.
Expand Down

0 comments on commit 0bbc8c0

Please sign in to comment.