mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 03:16:11 +00:00
obsolete a range of methods around GetArchiveLink
Due to how the default HttpClientAdapter of Octokit will follow redirects by default, this API is no longer working. Marking it as obsolete.
This commit is contained in:
@@ -116,6 +116,7 @@ namespace Octokit
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <returns></returns>
|
||||
[Obsolete("Octokit's HTTP library now follows redirects by default - this API will be removed in a future release")]
|
||||
public Task<string> GetArchiveLink(string owner, string name)
|
||||
{
|
||||
return GetArchiveLink(owner, name, ArchiveFormat.Tarball, string.Empty);
|
||||
@@ -144,6 +145,7 @@ namespace Octokit
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
||||
/// <returns></returns>
|
||||
[Obsolete("Octokit's HTTP library now follows redirects by default - this API will be removed in a future release")]
|
||||
public Task<string> GetArchiveLink(string owner, string name, ArchiveFormat archiveFormat)
|
||||
{
|
||||
return GetArchiveLink(owner, name, archiveFormat, string.Empty);
|
||||
@@ -174,6 +176,7 @@ namespace Octokit
|
||||
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
||||
/// <param name="reference">A valid Git reference.</param>
|
||||
/// <returns></returns>
|
||||
[Obsolete("Octokit's HTTP library now follows redirects by default - this API will be removed in a future release")]
|
||||
public Task<string> GetArchiveLink(string owner, string name, ArchiveFormat archiveFormat, string reference)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
|
||||
@@ -90,6 +90,7 @@ namespace Octokit
|
||||
return connection.Get<T>(uri, null, null);
|
||||
}
|
||||
|
||||
[Obsolete("Octokit's HTTP library now follows redirects by default - this API will be removed in a future release")]
|
||||
public static Task<IApiResponse<T>> GetRedirect<T>(this IConnection connection, Uri uri)
|
||||
{
|
||||
Ensure.ArgumentNotNull(connection, "connection");
|
||||
|
||||
@@ -408,6 +408,7 @@ namespace Octokit
|
||||
/// <param name="uri">URI of the API resource to get</param>
|
||||
/// <returns>The URL returned by the API in the Location header</returns>
|
||||
/// <exception cref="ApiException">Thrown when an API error occurs, or the API does not respond with a 302 Found</exception>
|
||||
[Obsolete("Octokit's HTTP library now follows redirects by default - this API will be removed in a future release")]
|
||||
public async Task<string> GetRedirect(Uri uri)
|
||||
{
|
||||
Ensure.ArgumentNotNull(uri, "uri");
|
||||
|
||||
Reference in New Issue
Block a user