PortableRest 4.0.0-beta1.12

A library for building REST API client wrappers to be used by .NET Standard 1.3+ apps.

This is a prerelease version of PortableRest.
This package has a SemVer 2.0.0 package version.
This package will only be available to download with SemVer 2.0.0 compatible NuGet clients, such as Visual Studio 2017 (version 15.3) and above or NuGet client 4.3.0 and above. Read more
Install-Package PortableRest -Version 4.0.0-beta1.12
dotnet add package PortableRest --version 4.0.0-beta1.12
<PackageReference Include="PortableRest" Version="4.0.0-beta1.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PortableRest --version 4.0.0-beta1.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

4.0.0
 • .NET Standard 1.3 and 2.0 support.

3.1.0
 • Multipart/form-data support.
 • .NET Standard 1.1 Support.
 • Now uses a static HttpClient internal instance. (fixes http://aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/)

3.0.1
 • Tons of bug fixes.
 • Improved the way PortableRest handles parameters being sent over the wire.
 • Added constructor overload that accepts a custom HttpMessageHandler for all requests the HttpClient makes.
 • Added support for using the AsyncOAuth NuGet package for leveraging OAuth in your requests.
 • Added support for specifying the JsonSerializerSettings on a client-wide or per-request basis, with request-specific settings taking precedence.
 • Enhanced the SendAsync method to pass exceptions thrown by the serializer into the RestResponse.
 • The serializer now strips namespaces from XML payloads before attempting to de-serialize. You may need to update your objects to [DataContract(Namespace="")] if you use XML-based Rest services.
 • WARNING: Strong name signing is removed in this version. See the PortableRest.Signed package for those needing SNK support (but you will not be able to use AsyncOAuth, as it is not signed).

2.5
 • New generic and non-generic SendAsync() methods that return a RestResponse with more detailed information.
 • Fixed an issue where the Async call can deadlock in certain situations.
 • Added CancellationToken support.
 • Windows Phone 8.1 support.

2.4.1
 • RestClient.CookieContainer property to share cookies between requests.
 • (Breaking) Reorganized namespaces.
 • Added more documentation.

2.4
 • Added ability to set encoding on individual parameters.
 • Added request-specific headers for OAuth compatibility.
 • Added RestClient.SetUserAgent()to set the UserAgent for you.

2.3
 • Triumphant return of SL5 support.
 • Better documentation.
 • RestClient.ExecuteAsync can return the raw string.
 • Misc. bug fixes.

2.1
 • Adds RestRequest.AddQueryString().
 • Updated minimum package references for Mono-compatible licenses.

2.0
 • Removed support for Silverlight due to Microsoft's new Reflection framework on .NET 4.5.
 • Added initial support for submitting XML payloads.
 • Strong-name signed the assembly so it can be used in strong-name signed projects.

 1.2: Updated to latest packages, include Microsoft.Bcl.Build directly to help with app.config issues.
 1.1: Compiled to HttpClient 2.2.
 1.0.8: Compile to new dependencies.
 1.0.6: Update based on changes to HttpClient.Compression.
 1.0.5: Added Compression support.
 1.0.4-alpha: Added basic POST support, &amp; updated XML deserialization.
 1.0.3: Added XML deserialization with DataContracts.
 1.0.0: First release.

Version History

Version Downloads Last updated
4.0.0-beta1.12 471 12/9/2017
4.0.0-alpha1 522 6/10/2017
3.1.0-beta7 1,247 10/10/2016
3.1.0-beta6 297 9/13/2016
3.1.0-beta5 270 9/10/2016
3.1.0-Beta4 728 11/30/2015
3.1.0-Beta3 283 11/30/2015
3.1.0-Beta2a 408 11/16/2015
3.1.0-Beta2 308 11/16/2015
3.1.0-Beta1 735 8/27/2014
3.0.1 32,539 8/16/2014
3.0.0 10,090 8/15/2014
3.0.0-RC12 2,659 8/7/2014
2.5.4 4,551 4/17/2014
2.5.3 339 4/15/2014
2.5.2 360 4/15/2014
2.5.1 368 4/13/2014
2.4.2 459 4/5/2014
2.4.1 1,302 1/8/2014
2.4.0 384 1/5/2014
2.3.0 404 12/21/2013
2.1.2 550 11/27/2013
2.1.1 508 11/23/2013
2.1.0 412 11/19/2013
2.0.0 935 10/27/2013