Commit Graph

15 Commits

Author SHA1 Message Date
Brendan Forster
fac6a01183 update the tests based on the more rigorous requirements 2015-05-08 18:11:00 +09:30
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
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
Matt Burke
5063b971b8 The test says we're asserting content-type, so let's do it. 2013-11-01 09:37:09 -04:00
Haacked
dcebd1f78a Add test for stream body 2013-10-15 14:12:57 -07:00
Haacked
db2f805bc8 Support requests with HttpContent body
If a 3rd party client needs to provide a specific HttpContent, we should
allow that in the adapter. Our clients probably shouldn't do this as it
would break encapsulation.
2013-10-11 14:34:09 -07:00
half-ogre
6f3fa81789 move internal stuff to .Internal namespace 2013-10-08 15:14:06 -07:00
Haacked
be7a14539e Set request content type appropriately 2013-10-06 22:26:23 -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
Paul Betts
b278e0b2d1 Add the response body to thrown API exceptions, it's Often Handy(tm) 2013-10-04 09:28:01 -07:00
Haacked
372fd25914 Move error handling to Connection
The adapter shouldn't be responsible for translating errors
into the proper exception.
2013-09-30 10:45:03 -07:00
Haacked
0a5acdb0cb Add status code to ApiResponse
We weren't setting this before.
2013-09-27 16:37:52 -07:00
Haacked
91b5449ddd Removed fluent assertions 2013-09-23 17:41:04 -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