RestSharp 101.0 Released
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.
