Skip to content

Commit

Permalink
Make some HttpClientFactory methods protected virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocontrini committed Oct 3, 2019
1 parent 7c7de3c commit 297e999
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions PlainHttp/HttpClientFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private HttpClient ProxiedClientFromCache(Uri proxyUri)
);
}

private static HttpClient CreateProxiedClient(Uri proxyUrl)
protected virtual HttpClient CreateProxiedClient(Uri proxyUrl)
{
HttpMessageHandler handler = new SocketsHttpHandler()
{
Expand All @@ -89,7 +89,7 @@ private static HttpClient CreateProxiedClient(Uri proxyUrl)
return client;
}

private static HttpClient CreateClient()
protected virtual HttpClient CreateClient()
{
HttpMessageHandler handler = new SocketsHttpHandler()
{
Expand Down
3 changes: 2 additions & 1 deletion PlainHttp/PlainHttp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<LangVersion>7.3</LangVersion>
<VersionPrefix>1.0.1</VersionPrefix>
<Description>Easy HTTP client with support for serialization, proxies, testing and more </Description>
<RepositoryUrl>https://github.com/matteocontrini/PlainHttp</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>http proxy testing serialization</PackageTags>
<PackageTags>http;httpclient;proxy</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

Expand Down

0 comments on commit 297e999

Please sign in to comment.