Brendan Forster
b51598d8b1
run the specific checks first for known binary content
2015-05-08 18:25:58 +09:30
Brendan Forster
288839543d
💄 moving things
2015-05-08 17:59:28 +09:30
Brendan Forster
a9abd0942e
move address generation into message setup
2015-05-08 17:56:42 +09:30
Brendan Forster
fc8319cc33
define a cancellation token for the request
2015-05-08 17:56:41 +09:30
csware
c710c46676
Allow to download zip-attachments
...
Fixes issue #784 .
2015-04-27 18:58:09 +02:00
Haacked
cf27bf510a
It's only a Type, not a Type Type
2015-01-16 14:40:04 -08:00
Haacked
aace9902b9
Make IResponse.ContentType readonly
2015-01-04 19:13:34 -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
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
37dec8491c
Read binary data based on response content type
...
The HttpClientAdapter class shouldn't need to know anything about the
type we'll eventually deserialize to. In fact, reading binary data was a
little hack added _only_ to support images such as emoji and not for
general purpose content.
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
Amy Palamountain
66c19adff3
💄
2014-02-18 16:01:20 +13:00
Brendan Forster
5f97d10970
removed redundant Send<T> from IHttpClient
2014-02-18 11:15:13 +11:00
Amy Palamountain
98e1556c37
Added cancelation token to request
...
+ overload
2014-02-16 17:04:50 +13:00
Brendan Forster
4105bc9119
added hook for providing a proxy to HttpClientAdapter
2014-01-15 16:40:44 -08:00
Haacked
c96b00650e
Add comments to concrete types
...
We now have a build task that copies comments from interface to
implementation.
2013-12-11 14:22:39 -08:00
Matt Burke
93d8c05c12
Set content type for streamed uploads.
2013-11-01 09:37:09 -04:00
Brendan Forster
70bb3bdbfc
💄 trim some long lines
2013-10-31 12:22:43 +11:00
Brendan Forster
43e82e124f
doing await right by calling .ConfigureAwait(false)
2013-10-31 12:06:46 +11:00
Haacked
ad210cecc7
Implement IssuesClient and interface
...
This required updating our serialization strategy so we handle enums
better.
2013-10-23 14:46:19 -07:00
Haacked
20659c4be2
Only set decompression when supported
2013-10-23 08:55:39 -07:00
Brendan Forster
efbb49fbc4
specify the correct Accept-Encoding headers
2013-10-23 14:43:57 +11: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
Haacked
a6a76a5105
Add Timeout and Follow redirects to IRequest
2013-10-10 17:01:16 -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
Matt Burke
84b42b7074
Implement PostRawAsync, for asset uploading.
2013-10-03 09:09:26 -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
e07b6d62c2
Add null checks and fix CodeAnalysis errors.
...
I enabled code analysis to the Octokit.Reactive project and
needed to fix things up.
2013-01-29 14:36:24 -08: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