mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 19:46:07 +00:00
provide a Delete<T>() overload that takes a Uri and accept header, but no body (#1868)
This commit is contained in:
@@ -328,6 +328,16 @@ namespace Octokit
|
||||
/// <param name="data">The object to serialize as the body of the request</param>
|
||||
Task<T> Delete<T>(Uri uri, object data);
|
||||
|
||||
/// <summary>
|
||||
/// Performs an asynchronous HTTP DELETE request.
|
||||
/// Attempts to map the response body to an object of type <typeparamref name="T"/>
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The API resource's type.</typeparam>
|
||||
/// <param name="uri">URI endpoint to send request to</param>
|
||||
/// <param name="accepts">Specifies accept response media type</param>
|
||||
/// <returns>The returned <seealso cref="HttpStatusCode"/></returns>
|
||||
Task<T> Delete<T>(Uri uri, string accepts);
|
||||
|
||||
/// <summary>
|
||||
/// Performs an asynchronous HTTP DELETE request.
|
||||
/// Attempts to map the response body to an object of type <typeparamref name="T"/>
|
||||
|
||||
Reference in New Issue
Block a user