Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: restsharp/RestSharp
base: 104.1
...
head fork: restsharp/RestSharp
compare: 104.2
Checking mergeability… Don't worry, you can still create the pull request.
Commits on Apr 24, 2012
SwearWord XmlAttributeDeserializer crashes if value == "". Put in a check for v…
…alue == string.Empty instead of just checking if value == null.
c68de9d
Commits on Sep 04, 2012
@lukebakken lukebakken Added ability to write response data directly to Stream. ca4e7c8
Commits on Sep 07, 2012
@apodlaski apodlaski Another fix for ExecuteAsync 2ce5204
@lukebakken lukebakken Remove duplicated code. 59ae2b9
Commits on Sep 13, 2012
@ayoung ayoung Merge pull request #321 from apodlaski/master
Another fix for ExecuteAsync
eef0c86
Commits on Sep 17, 2012
@PedroLamas PedroLamas Added CONTRIBUTING.markdown cfce270
@PedroLamas PedroLamas Merge pull request #324 from PedroLamas/master
Added CONTRIBUTING.markdown to repository
a529617
@johnsheehan johnsheehan Update CONTRIBUTING.markdown 054adce
Commits on Oct 19, 2012
@bmontgomery bmontgomery fix adding array of ints to restrequest using addobject 496fd5c
Commits on Jan 11, 2013
@ayoung ayoung Merge pull request #259 from Dharun/patch-1
XmlAttributeDeserializer crashes if value == ""
cc283fb
Commits on Jan 13, 2013
@ewanmellor ewanmellor 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.
aee34f0
@ewanmellor ewanmellor Add RequestBodyBytes.
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.
3bd58b0
Commits on Feb 11, 2013
@TripleEmcoder TripleEmcoder Fixed skipping of XAuth parameters with OAuthParameterHandling.UrlOrP…
…ostParameters.
d76b683
Commits on Feb 27, 2013
@BMeyerKC BMeyerKC 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().
6ebfc29
Commits on Mar 25, 2013
@scottschluer scottschluer Added support for serialization for classes containing IList properties 7a2799d
Commits on Mar 30, 2013
@ErikSchierboom ErikSchierboom Added support for specifying token type in OAuth2Authenticator. fixes #… 80bad5c
@PedroLamas PedroLamas Merge pull request #365 from ErikSchierboom/issue-364
Added support for token type in OAuth2Authenticator. fixes #364
0dd78f5
@ErikSchierboom ErikSchierboom Added ExecuteAsync overloads that return Task<T>. fixes #366 64a12b9
Commits on Apr 02, 2013
@ErikSchierboom ErikSchierboom Renamed methods to conform to TPL standards and added overloads for G…
…ET and POST specific usage and added overloads without CancellationToken
0d9f9f2
Commits on Apr 09, 2013
Nick Van Eeckhout Fix for Issue #368 713935b
Commits on Apr 12, 2013
@ayoung ayoung Merge github.com:BMeyerKC/RestSharp f770c1a
@ayoung ayoung Fix compatibility for SL and WP 20bfaa1
@ayoung ayoung Merge branch 'response-write-to-stream' of github.com:IronFoundry/Res…
…tSharp
01fafe2
@ayoung ayoung Version bump 104.2 6bd1b11
@ayoung ayoung Merge github.com:bmontgomery/RestSharp 3680628
@ayoung ayoung Merge branch 'RequestBodyBytes' of github.com:ewanmellor/RestSharp f808f09
@ayoung ayoung Merge branch 'fix-accepts-mem-leak' of github.com:ewanmellor/RestSharp 19facb8
@ayoung ayoung Merge github.com:nickvane/RestSharp 9ee6d0e
Commits on Apr 21, 2013
Naliath - 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.
fde15e2
Commits on May 20, 2013
@hahmed hahmed IRestResponse instead of RestResponse
For anyone copying and pasting your example (like me) - you can get started a little bit quicker :)
0b45408
Commits on May 22, 2013
@ixkor ixkor Fix bug with not set ResponseStatus.Aborted if the request was aborte…
…d just after starting.
30ce85a
@ixkor ixkor "== ResponseStatus.Completed" more correctly than "!= ResponseStatus.…
…Aborted"
816e8be
Commits on May 24, 2013
Naliath Better support for nullable types 52c4443
Naliath Better support for nullable types 4990d8f
Naliath Improved handeling on nullable types (propper commit this time)
VS seems to be out of sync an doing strange things hence the odd commits
f632b9e
Commits on May 25, 2013
@lishali12345 lishali12345 Add the missed ContentLength Property 2781d7e
Commits on Jun 03, 2013
@meixger meixger Fix for Issue #384
Implemented multipart/form-data POSTS with only parameters and without
files.
a4eb2be
Commits on Jun 20, 2013
@Haacked Haacked 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.
af93bbb
@Haacked Haacked Remove JSON.NET from unit test project
This fixes #346
0a6be69
@Haacked Haacked Upgraded SimpleJson to 0.25
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
4161954
Commits on Jun 21, 2013
@Haacked Haacked Merge pull request #388 from Haacked/remove-unneeded-import
Remove redundant MSBuildBinPath import
f4d0195
@Haacked Haacked Merge pull request #390 from Haacked/update-simplejson
Upgraded SimpleJson to 0.25
e5f6944
@Haacked Haacked Merge pull request #389 from Haacked/update-jsondotnet
Remove JSON.NET from unit test project
4fbb483
@Haacked Haacked Merge pull request #379 from hahmed/patch-1
IRestResponse instead of RestResponse
9d15868
@Haacked Haacked Merge pull request #381 from XixunDeveloper/master
Fixed System.Net.ProtocolViolationException issue cause of missed the ContentLength property
516840b
@Haacked Haacked Add SimpleJson.cs as a linked file
This fixes a mistake in my previous commits.
833608c
Commits on Jun 28, 2013
@nover nover 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.
19dc9c4
Commits on Jul 13, 2013
@ixkor ixkor Extract creating the response with error status into the CreateErrorR…
…esponse method.
b5b559b
Commits on Jul 31, 2013
@davidcollie davidcollie Don't strip trailing slash when adding query parameters as per RFC173…
…8 and RFC2396
b8682b4
Commits on Aug 19, 2013
@ErikSchierboom ErikSchierboom Fixed indentation e49f258
@ErikSchierboom ErikSchierboom Throw an exception when ExecuteTaskAsync fails 43d41ce
Commits on Aug 20, 2013
@ErikSchierboom ErikSchierboom Added unit tests for task-based async methods dfd18ba
Commits on Aug 21, 2013
@pasho pasho A hacky fix for the decimal parse error which happens for very small …
…numbers like "0.00005557"

A simple program which recreates the error:
using System;
using RestSharp;

namespace RestSharpJson
{
    class Program
    {
        static void Main(string[] args)
        {
            var json = "{\"value\":0.00005557}";

            var ds = new JsonDeserializer();

            var resp = new RestResponse()
                           {
                               Content = json
                           };

            var result = ds.Deserialize<Number>(resp);
            Console.WriteLine(result.value);
            Console.Read();
        }

        class Number
        {
            public decimal value { get; set; }
        }
    }  
}

ConvertValue gets value as double already and it needs to convert it to decimal. To do that it transforms it to string. At this step our double value turns into this "5.557E-05". Decimal.Parse is unable to read it.
9f3942a
Commits on Aug 22, 2013
@pasho pasho Fixed the indentation in the JsonDeserializer.cs
Added a unit test which reproduces the issue.
cd369aa
Commits on Aug 26, 2013
@pseudomuto pseudomuto moving version into a single spot 027a677
@pseudomuto pseudomuto adding xmlupdate task to update version in .nuspec file 085a14a
Commits on Aug 27, 2013
@pseudomuto pseudomuto Revert "moving version into a single spot"
This reverts commit 027a677.
811826d
@pseudomuto pseudomuto removing msbuildtasks package 26776a9
@pseudomuto pseudomuto adding custom build task 0d2b4e4
@pseudomuto pseudomuto adding NuSpecUpdateTask to RestSharp.csproj a7bbb3a
@pseudomuto pseudomuto Moving build task into separate project
The assembly kept getting locked preventing me from rebuilding. Now when you run package.cmd, it will run the custom MSBuild task and create a computed nuspec file
318d543
@pseudomuto pseudomuto removing hardcoded version number from tests
I had added 104.2.0 as the expected value which would break the tests with future versions. It has now been replaced with a regex.
1b7eab8
@Haacked Haacked Merge pull request #397 from davidcollie/master
Don't strip trailing slash when adding query parameters as per RFC1738 a...
e2cd138
Commits on Aug 30, 2013
@devinrader devinrader Changed JsonDeserializer to look for and honor DeserializeAs attribute d5667f9
@devinrader devinrader Tabified and cleanup up comments e841247
@devinrader devinrader Tabify all the things 434ed63
Commits on Sep 04, 2013
@Haacked Haacked Merge pull request #406 from devinrader/master
Changed JsonDeserializer to look for and honor DeserializeAs attribute
b60f2dd
@ErikSchierboom ErikSchierboom Added parameter checks for NULL values 5583a75
@Haacked Haacked Merge pull request #405 from pseudomuto/auto_package_and_version
fix for #378 auto-package and version
9e7712e
@Haacked Haacked Merge pull request #402 from pasho/master
A hacky fix for the decimal parse error which happens for very small numbers like "0.00005557". There might be a better way of doing this.
68f1206
@Haacked Haacked Merge pull request #396 from nover/master
Fixed ClientCertificate NotImplementedException on mono runtime.
a28a2a0
@Haacked Haacked Fix indentation 9946335
@Haacked Haacked Fix client certs on Mono part 2
Second part to fix #396
d6c45af
@Haacked Haacked Merge pull request #367 from ErikSchierboom/issue-366
Add Task<T> overloads to ExecuteAsync
a15a9a2
@Naliath Naliath Added unit test for deserializer change 21c0c8d
@Haacked Haacked Merge pull request #385 from meixger/master
Implemented multipart/form-data POSTS with only parameters and without files.
60aa64f
@Haacked Haacked Fix up indentation 2af151c
@Naliath Naliath Added additional HTTP Status codes as valid responses 0fe0fa1
@Naliath Naliath Changed indentation to tabs 6204672
@Naliath Naliath Missed one indent... 4d227a3
@Haacked Haacked Merge pull request #376 from Naliath/master
Preventing System.NullReferenceException when deserializing invalid responses
a86b254
Commits on Sep 05, 2013
@scottschluer scottschluer Fixed whitespace issues 5b54093
Commits on Sep 06, 2013
@Haacked Haacked Merge pull request #361 from scottschluer/serialize-list
Added support for serialization for classes containing IList properties
405ff6c
Commits on Sep 07, 2013
@EamonHetherton EamonHetherton Add support for DateTimeOffset to XmlDeserializer a63e84c
@EamonHetherton EamonHetherton Ignore empty string values 3399efa
@EamonHetherton EamonHetherton Add TypeConverter fallback option 7b4da75
@EamonHetherton EamonHetherton Added unit Test for DateTimeOffset XmlDeserialization 0db7b9c
@EamonHetherton EamonHetherton added fallback option for datetimeoffset objects that can't be deseri…
…alised by XmlConvert
0ef75b0
@EamonHetherton EamonHetherton Fixed Indentation c398ea1
@Haacked Haacked Fixed indentation
RestSharp uses tabs instead of spaces. Oy!
ec4405a
@Haacked Haacked Merge pull request #407 from restsharp/datetimeoffset-support
Datetimeoffset support
15e6efb
@Haacked Haacked Merge pull request #351 from Caliper/master
	 Fixed skipping of XAuth parameters with UrlOrPostParameters
4244775
@scottschluer scottschluer Fixed reference to incorrectly named object 22402c6
@Haacked Haacked Merge pull request #408 from scottschluer/fix-json-error
Fixed reference to incorrectly named object
6230c18
@Haacked Haacked Upgrade SimpleJson to 0.26.0 61d16dc
@achvaicer achvaicer checking if type is System.Object but with a primitive value on deser…
…ialization
4505c6a
@achvaicer achvaicer Adding unit test to check if property of type object but with primiti…
…ve value is been deserialized without throw InvalidCastException
a19f681
@Haacked Haacked Merge pull request #410 from restsharp/object-with-primitive-value-fix
Object with primitive value fix
06f1d50
@Haacked Haacked HWHOOPS! Remove merge markers 315c01f
@Haacked Haacked Merge pull request #409 from restsharp/update-simplejson
Upgrade SimpleJson to 0.26.0
14c0e61
@Haacked Haacked Merge pull request #380 from ixkor/FastAbortBug
Fix bug with no setting ResponseStatus.Aborted if the request was aborted just after starting.
272e6e9
@Haacked Haacked Remove double cast when one will do e9bff6a
@Haacked Haacked Merge pull request #411 from restsharp/cleanup
Remove double cast when one will do
a3c903b
@Haacked Haacked Add gitattributes and fix line-endings
See folks. THIS IS WHY WE ALWAYS ADD A .gitattributes FILE!
428e664
@Haacked Haacked Merge pull request #413 from restsharp/gitattributes
Add gitattributes and fix line-endings
3d03eec
Commits on Sep 09, 2013
@devinrader devinrader Adding myget build.bat file 5007ba8
@devinrader devinrader Renamed to bat and added unit tests 4e50d75
@devinrader devinrader Fixed test project name typo da97f10
@devinrader devinrader more dumb fixes d3a03c5
Commits on Sep 10, 2013
@devinrader devinrader Commented out the failing unit test run d8a5234
@Haacked Haacked Merge pull request #415 from restsharp/mygetbuild
Added build.bat for myget builds
1a92f7f
@Haacked Haacked Beta package a902af5
@Haacked Haacked Merge pull request #417 from restsharp/Release-104.2.0-beta
Beta package
90704f2
@Haacked Haacked Fix broken silverlight build 545bf06
@Haacked Haacked Suppress warnings about missing xml comments 67b2d79
@Haacked Haacked Merge pull request #418 from restsharp/silverlight-fixes
Silverlight fixes
9c8d1cd
@Haacked Haacked Also no type descriptors in windows phone 56bf81e
@Haacked Haacked Fix warning suppression e0a9258
@Haacked Haacked Ok, I need to pay more attention bac9eed
@Haacked Haacked Fix integration test suppression ce58894
@Haacked Haacked More warning suppressions 0777793
@Haacked Haacked More comment warning suppressions b0cd9ab
@Haacked Haacked Fix tests which need to factor in SemVer
I don't plan on using crazy semver pre-release versions yet so I made
the regex very simple.
35154c9
@Haacked Haacked Fix warning in XmlAttributeDeserializer da23419
@Haacked Haacked Fix bad matching xml tag 515acdc
@Haacked Haacked Fix broken unit test
If the response is a bad request, we should probably not have anything
in the request message.
9b423a8
@Haacked Haacked Treat warnings as errors
C'mon! This ain't no amateur hour! :trollface:
38cd01f
@Haacked Haacked Merge pull request #419 from restsharp/more-cleanup
More cleanup
d15f0a8
@Haacked Haacked Fix hintpath for xunit 6a443bd
@Haacked Haacked Upgrade xunit to 1.9.1 888c323
@Haacked Haacked Remove package entry for long gone package 46d85b6
@devinrader devinrader Update build.bat e8754e7
Commits on Sep 16, 2013
@jessewebb jessewebb RequestBody now supported by DELETE and OPTIONS 7d4674d
@jessewebb jessewebb Convert spaces to Tabs a8a31ed
Commits on Sep 17, 2013
@Haacked Haacked Merge if statements 8ae6235
@Haacked Haacked Merge pull request #426 from restsharp/delete-options-request-body
Delete options request body
a2e5bc8
Commits on Sep 18, 2013
@Haacked Haacked Provide Task<IRestResponse<T>> methods
Also provided simpler extension methods when you don't care about the
response info and just want the data.

Fixes #423
4ffcc7c
@Haacked Haacked Merge pull request #427 from restsharp/haacked/423-awaitable-async
Provide Task<IRestResponse<T>> methods
d321bd5
@Haacked Haacked Update release notes for 104.2.0 fa200c5
@Haacked Haacked Remove the beta tag a9f9b04
@Haacked Haacked Merge pull request #422 from restsharp/Release-104.2
Preparing 104.2.0 release
e69d283