XmlAttributeDeserializer crashes if value == "". Put in a check for v…
…alue == string.Empty instead of just checking if value == null.
Merge pull request #321 from apodlaski/master
Another fix for ExecuteAsync
Merge pull request #324 from PedroLamas/master
Added CONTRIBUTING.markdown to repository
Merge pull request #259 from Dharun/patch-1
XmlAttributeDeserializer crashes if value == ""
Fix memory leak around handling of Accepts header.
When adding an Accepts header to the request, this shouldn't be put into DefaultParameters. Repeated requests through the same RestClient instance were adding the Accepts header every time, resulting in a large memory leak because DefaultParameters was growing without bound. Instead, only add the header for this particular request.
Implement the ability for the body of a PUT or POST to be specified using a byte array, rather than a string. This avoids the roundtrip through UTF-8 and back again if the caller already has a byte array.
ConfigureProxy(http) was not being called in the ExecuteAsync().
Added ConfigureProxy(http) to the end of ConfigureHttp(request, http). Removed call to ConfigureProxy(http) in Execute().
Merge pull request #365 from ErikSchierboom/issue-364
Added support for token type in OAuth2Authenticator. fixes #364
Renamed methods to conform to TPL standards and added overloads for G…
…ET and POST specific usage and added overloads without CancellationToken
- Added missing ErrorException initializer when creating RestRequest<…
…T> from regular request. - Modified Deserialize<T> so that the deserialization is only preformed when the request returned successfully. This because the current implementation threw an useless error when for example the request timed out and no correct header was present to be processed. This error was not cought and even if it was it would override the source error already stored in the request object. In addition to this, a bare object was returned even when there was nothing to deserialize (invalid request, ex. 404). The returned object should of been null.
IRestResponse instead of RestResponse
For anyone copying and pasting your example (like me) - you can get started a little bit quicker :)
Fix bug with not set ResponseStatus.Aborted if the request was aborte…
…d just after starting.
Better support for nullable types
Better support for nullable types
Improved handeling on nullable types (propper commit this time)
VS seems to be out of sync an doing strange things hence the odd commits
Implemented multipart/form-data POSTS with only parameters and without files.
Remove redundant MSBuildBinPath import
MSBuildBinPath was replaced with MSBuildToolsPath after VS2005. MSBuildBinPath was kept around for back-compat, but is no longer needed. The extra import causes unnecessary build warnings. See http://msdn.microsoft.com/en-us/library/bb397428.aspx for a full discussion.
Since SimpleJson.cs is a linked file, only one project should have a packages.config entry for it, the one with the actual file. The others will fail trying to update a linked file. I removed the SimpleJson packages.config entry for all the other projects. I left it in RestSharp\packages.config
Merge pull request #388 from Haacked/remove-unneeded-import
Remove redundant MSBuildBinPath import
Merge pull request #390 from Haacked/update-simplejson
Upgraded SimpleJson to 0.25
Merge pull request #389 from Haacked/update-jsondotnet
Remove JSON.NET from unit test project
Merge pull request #379 from hahmed/patch-1
IRestResponse instead of RestResponse
Merge pull request #381 from XixunDeveloper/master
Fixed System.Net.ProtocolViolationException issue cause of missed the ContentLength property
Add SimpleJson.cs as a linked file
This fixes a mistake in my previous commits.
Fixed ClientCertificate NotImplementedException on mono runtime.
In mono there is no setter for the ClientCertificates property on the WebRequest class, and therefore it throws a NotSupportedException. However, if the collection is empty upon access a new instance is added and returned, thus, one can simply add the current certificates to the request's certificate collection.
Don't strip trailing slash when adding query parameters as per RFC173…
…8 and RFC2396