Commit Graph

25 Commits

Author SHA1 Message Date
Ryan Gribble ae73ce6ced Rename variables 2016-01-07 21:00:11 +10:00
Ryan Gribble c7b4899d66 Replace all other uses of hardcoded HTTP header strings to declare/use entries in the AcceptHeaders helper class
Left test methods alone as it isn't good practice to share these definitions between Test and Implementation classes
2015-12-23 22:21:42 +10:00
Mordechai Zuber 44304ca70b use string per recommended style 2015-12-16 21:23:36 +02:00
Brendan Forster 80719c0033 aaaand format the code 2015-11-04 13:38:51 -08:00
Brendan Forster 0acdb8cc60 Merge branch 'master' into redirect-requests
Conflicts:
	Octokit/Octokit-Mono.csproj
	Octokit/Octokit-MonoAndroid.csproj
	Octokit/Octokit-Monotouch.csproj
	Octokit/Octokit-Portable.csproj
	Octokit/Octokit-netcore45.csproj
2015-06-15 16:33:42 +09:30
campersau 8aa5a247d8 rename misleading responseIsArray variable to responseIsObject 2015-06-11 18:34:16 +02:00
Brendan Forster 3859ff3627 the test, it passes 2015-05-31 22:12:22 +09:30
Brendan Forster c595f26515 unshipping preview API changes due to excessive paging introduced in some situations 2015-03-01 20:04:35 +09:30
Brendan Forster 491c1707a7 preview API first, yo 2015-02-23 09:20:36 +09:30
joshvera 53faa6a68a add moondragon as an acceptable content-type 2015-02-19 15:41:21 -05: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 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
Brendan Forster 2395eecf71 bugfix - dictionaries are enumerable - we shouldn't enforce this serialization rule 2015-01-04 11:22:41 +09:30
Haacked 0d3717208d Add support for deserializing object to an array
Some APIs return either an object or an array. This is hard for us
static typed languages. So what we do is normalize things to an array
when we expect one.
2015-01-02 01:14:10 -08:00
Haacked d7a69e20d7 Implement OAuth Web Flow
Provide methods to make it easy for developers to implement the
web flow.

https://developer.github.com/v3/oauth/#web-application-flow
2014-04-19 16:01:35 -07:00
Amy Palamountain 82fcea6602 a work around for simple json support for empty root nodes 2014-02-16 17:04:20 +13:00
Haacked 50a197742d Fix releases client to pass accepts header 2013-10-15 13:59:14 -07:00
half-ogre 6f3fa81789 move internal stuff to .Internal namespace 2013-10-08 15:14:06 -07:00
Haacked 9f1626e484 Do not attempt to json serialize stream body 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
Haacked e19765ece9 Do not overwrite existing Accept headers 2013-10-03 09:27:25 -07:00
Matt Burke 4cc62af306 Get integration tests to work for releases. 2013-10-03 09:03:59 -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