rewrite the setup of responses to use a standard helper function (#2177)

This commit is contained in:
Brendan Forster
2020-04-14 11:30:15 -03:00
committed by GitHub
parent 69d118230d
commit 287861e4a7
41 changed files with 390 additions and 448 deletions
+5 -2
View File
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Net;
@@ -9,10 +10,12 @@ namespace Octokit.Internal
/// </summary>
internal class Response : IResponse
{
[Obsolete("Use the constuctor with maximum parameters to avoid shortcuts")]
public Response() : this(new Dictionary<string, string>())
{
}
[Obsolete("Use the constuctor with maximum parameters to avoid shortcuts")]
public Response(IDictionary<string, string> headers)
{
Ensure.ArgumentNotNull(headers, nameof(headers));
@@ -53,4 +56,4 @@ namespace Octokit.Internal
/// </summary>
public string ContentType { get; private set; }
}
}
}