I have to start this post by thanking Andrew Young for coming on as a core contributor and doing most of the work that made this release possible. Everything unattributed below was done by Andrew and he managed all the pull requests. Thanks Andrew!
Version 102 is on NuGet and GitHub Downloads.
Changelog:
- NEW: Added Windows Phone 7.1 Mango assembly. No differences from Windows Phone 7.0 assembly but should hopefully avoid some NuGet versioning conflicts if JSON.NET adds a Mango version.
- NEW: Mono for Android support added (thanks gshackles!)
- NEW: Added support for DateTimeOffset values in JsonDeserializer (thanks tathamoddie!)
- NEW: Added RestRequestAsyncHandle to allow for canceling async requests
- NEW: Added support for ClientCertificates to RestClient
- NEW: Added DotNetSerializer (thanks liddellj!)
- UPDATED: MonoTouch version synced with main version
- UPDATED: RestResponse.Content is now lazy-loaded on first access to avoid performance hit of populating both RestResponse.RawBytes and RestResponse.Content
- FIXED: Set compression settings for async requests
- FIXED: Better date/time handling in JsonDeserializer (thanks tathamoddie!)
- FIXED: Better handling of multipart form data (moved paramter data before file data) (thanks willkelleher!)
- FIXED: Deserialization of a list of primitives when XML elements are namespaced (thanks ArturDorochowicz!)
- FIXED: Made line endings for request bodies conform to standards across platforms (thanks thrackle!)
- FIXED: Fixed bug with writing double-byte unicode
- FIXED: Incorrect content length when unicode characters present
- FIXED: Inconsistencies in culture handling
Report any issues to the Google Group. Enjoy!
Minor fixes and enhancements.
NuGet and GitHub downloads updated.
Just a couple small bug fixes in this one:
- FIXED: JSON.NET reference issues should finally be resolved. The JSON.NET package changed their assembly to be strong named in between when I added the reference in my project and when the last release was made.
- FIXED: OAuth parameters now sort correctly in more cases (thanks cdeutsch!)
- FIXED: JSON.NET fixed some bugs in 4.x around JSON string handling that broke a few deserialization cases.
NuGet and GitHub downloads updated.
Get it on NuGet or GitHub downloads. Also, if you have a moment, I would appreciate your rating and review of the project on the NuGet gallery.
- Updated JSON.NET to 4.0.2
- IMPROVED: Windows Phone 7 now supported via NuGet (thanks to NuGet 1.2 and JSON.NET updates)
- IMPROVED: References to JSON.NET and xUnit now done via NuGet (should resolve issue where there was an error with JSON.NET when installing RestSharp via NuGet)
- FIXED: Async requests weren’t setting Accept header based on registered deserializers
-
FIXED: MonoTouch project was out of date (thanks
kevinmcmahon!)
-
FIXED: Async requests that set Timeout value threw exception
-
FIXED: Content length is sometimes incorrect when using unicode characters in request body
-
FIXED: Timeout value only set in async requests when it does not equal 0
RestSharp 101.0 is now available on NuGet (Update-Package RestSharp or Install-Package RestSharp if not yet installed) and GitHub downloads.
Changes:
- NEW: You can now specify an IHttp implementation to be used via RestClient.HttpFactory [0]
- NEW: Deserialize JSON directly to Dictionary<string, string> (thanks lucisferre!)
- IMPROVED: File uploads now support parameter name (thanks thecutter!)
- IMPROVED: Standardize on InvariantCulture in XmlDeserializer. Overridable via XmlDeserializer.Culture property. [1]
- IMPROVED: Execute methods now virtual
- IMPROVED: Set ServicePointManager.Expect100Continue = false
- IMPROVED: Set HttpWebRequest.UseDefaultCredentials = false
- IMPROVED: Better URI encoding (thanks lucisferre!)
- IMPROVED: Updated to JSON.NET v4
- IMPROVED: Better element name matching when deserializing directly to List<T>
- IMPROVED: Better deserialization of generic objects with generic lists.(thanks ayoung!)
- FIXED: Async requests now acknowledge timeout value (thanks ayoung!)
- FIXED: JSON body get truncated when it contains unicode characters that encode to more than one byte. (thanks SneakyMax!)
- FIXED: Some oAuth1 Access Token requests failed (thanks codemonkeylabs!)
- FIXED: oAuth1Authenticator didn’t work when a POST parameter was present
- FIXED: URL Encode when replacing templated URL segment values (thanks ayoung!)
[0] Injecting your own IHttp implementation
var client = new RestClient();
client.HttpFactory = new SimpleFactory<FakeHttp>();
[1] Setting the Culture on XmlDeserializer
var client = new RestClient();
client.AddHandler("text/xml", new XmlDeserializer { Culture = CultureInfo.CurrentCulture });
Both of these APIs will probably be overhauled and cleaned up in RestSharp 2xx.
Thanks again to the fantastic community of contributors! I could not keep this project going without you guys. Also thanks to Jon Fuller for his behind-the-scenes contributions in this release window.