make Upload a generic POST

The Releases API-specific part of uploading (the accept header) is now
in the Releases client and the API connection just has a generic POST
method. /cc @spraints
This commit is contained in:
half-ogre
2013-10-14 12:38:10 -07:00
parent a0306ae1df
commit e933ca7391
5 changed files with 21 additions and 11 deletions
+1 -1
View File
@@ -22,6 +22,6 @@ namespace Octokit
Task<T> Update<T>(Uri endpoint, object data);
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification="Legitimate, but I'm not fixing it just yet.")]
Task Delete<T>(Uri endpoint);
Task<T> Upload<T>(Uri uri, Stream rawData, string contentType);
Task<T> Post<T>(Uri uri, Stream rawData, string contentType, string accepts);
}
}