Commit Graph

17 Commits

Author SHA1 Message Date
Brendan Forster 80719c0033 aaaand format the code 2015-11-04 13:38:51 -08:00
Kristian Hald 261e47f2f5 Implemented data less 'Post' method and used in ping and test hook calls. 2015-04-20 23:19:59 +02:00
Haacked fa363b169f Remove StatusCode property from ApiResponse
We really want ApiResponse to be a composite of IResponse and the
deserialized content.
2015-01-04 19:25:43 -08:00
Haacked 6c05651d64 Remove the redundant ApiInfo property 2015-01-04 19:15:44 -08:00
Haacked c2d51570fd Make IResponse.Headers a readonly dictionary 2015-01-04 19:13:35 -08:00
Haacked ff3506f3e8 Make some of the IResponse properties readonly 2015-01-04 19:13:32 -08:00
Haacked 53a6516de2 Change IResponse.Body to object
This removes the awkward Body and BodyAsObject property combo we used to
have.
2015-01-04 19:06:50 -08:00
Haacked be9f446df4 Move Response to its own file and Internal namespace
A class named "Response" could conflict with a lot of things.
2015-01-04 19:03:25 -08:00
Haacked 4c8bab20eb IApiResponse no longer inherits IResponse 2015-01-04 18:58:53 -08:00
Haacked 09d5c236a4 Rename IResponse<T> to IApiResponse 2015-01-04 18:33:48 -08:00
Haacked 49f95d40f1 Remove Type parameter for IHttpClient send method
This keeps the IHttpClient interface simpler and ensures the
deserialization responsibility lies outside of that class. It only
needed the Type parameter for a special case that could be handled in a
better way.
2015-01-04 18:22:05 -08:00
Haacked 1305b603b3 Add support for requesting raw bytes.
People have their reasons. We're going to use the same `IHttpClient`
to request emoji images.
2014-04-16 13:27:18 -07:00
Haacked 2d81cb37cc Move more types into the Octokit namespace
This makes it so GHfW doesn't have to reference Octokit.Internal
2013-10-08 17:02:51 -07:00
half-ogre 6f3fa81789 move internal stuff to .Internal namespace 2013-10-08 15:14:06 -07:00
Haacked fa1473264c JsonHttpPipeline only deserializes JSON responses
The JsonHttpPipeline should only try to deserialize responses that have
a Content-Type of application/json.
2013-10-06 21:32:19 -07:00
Haacked 0a5acdb0cb Add status code to ApiResponse
We weren't setting this before.
2013-09-27 16:37:52 -07:00
Haacked 997e955f38 Rename to Octokit to be consistent with other API libs
GitHub is naming all of the libraries Octokit for their respective
platforms
2013-01-29 14:00:27 -08:00