NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet
NuGet, #1187 most downloaded on NuGet
Simple REST and HTTP API Client
Latest stable
114.1.0
Last release 1 months ago
21 Oct 2026
Ships unpredictably
gaps range from 3 weeks to 1.2 years
Most releases are documented
notes for 35 of 42 stable releases
4 versions withdrawn
withdrawn after publishing
127 years old
46 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Fix HttpClient deadlocks: Addendum to #2367 by @deAtog in #2371
Full Changelog: 114.0.0...114.1.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Full Changelog: https://github.com/restsharp/RestSharp/compare/114.0.0...114.1.0
TrailingHeaders on RestResponse — HTTP response trailers (RFC 9110 trailer fields) are now exposed as a separate TrailingHeaders collection, kept apart from Headers and ContentHeaders. Trailers are populated on .NET 8 and later after the response content has been read; on .NET Framework and .NET Standard the collection is always empty. (#2414)RestClient no longer instantiates the built-in System.Text.Json serializer before the configureSerialization callback runs. Replacing the JSON serializer (for example with UseNewtonsoftJson()) now avoids loading System.Text.Json at all, which fixes assembly binding failures in .NET Framework plugin scenarios. (#2403)Execute methods run on the thread pool — the sync-over-async bridge now uses Task.Run and GetAwaiter().GetResult() instead of a custom synchronization context, preventing deadlocks when calling the synchronous API from a UI or ASP.NET synchronization context. (#2371)AddObjectStatic throwing NullReferenceException when any property of the object is null. Null properties are now skipped, consistent with AddObject. (#2401)RestSharp.Serializers.CsvHelper now depends on CsvHelper 33.1.0. (#2378)Fix OAuth1 double-encoding of RFC 3986 special characters in URL paths by @Copilot in https://github.com/restsharp/RestSharp/pull/2341
Full Changelog: https://github.com/restsharp/RestSharp/compare/113.1.0...114.0.0
Full Changelog: 113.1.0...114.0.0
IAuthenticator interface signature changed — Authenticate now accepts an optional CancellationToken parameter. All custom authenticator implementations must be recompiled. (#2362)FollowRedirects and MaxRedirects removed from ReadOnlyRestClientOptions — these properties are now excluded from the generated immutable wrapper. Use RedirectOptions instead. Code accessing these properties on ReadOnlyRestClientOptions must be updated. (#2360)AddParameter<T>, AddOrUpdateParameter<T>, AddHeader<T>, AddOrUpdateHeader<T>, AddQueryParameter<T>, and AddUrlSegment<T> now have an additional optional CultureInfo? culture parameter. Assemblies compiled against v113 must be recompiled. (#2354)OAuth2ClientCredentialsAuthenticator, OAuth2RefreshTokenAuthenticator, and OAuth2TokenAuthenticator that handle obtaining, caching, and refreshing tokens automatically. (#2362)RedirectOptions — RestSharp now manages redirects internally instead of delegating to HttpClient, fixing lost Set-Cookie headers on redirects. New RedirectOptions class provides fine-grained control over redirect behavior. (#2360)MergedParameters on RestResponse — provides a combined view of request and default parameters at execution time, useful for logging and debugging. (#2349)AddCookie(name, value) overload — the simple two-parameter form defers domain resolution to execution time. (#2351)MultipartFormQuoteParameters now defaults to true — multipart form parameter names are now quoted per RFC 7578. (#2357)InvariantCulture used for parameter formatting — all generic parameter methods now format values using CultureInfo.InvariantCulture by default. Pass a CultureInfo explicitly if locale-specific formatting is needed. (#2354)ErrorMessage for timeouts — now shows "The request timed out." instead of "A task was canceled.". (#2356)ErrorMessage surfaces root cause — uses GetBaseException().Message to show the actual error instead of generic wrapper messages. (#2352)HttpClient.DefaultRequestHeaders no longer modified — Expect100Continue is now set per-request. Safe to share an HttpClient across multiple RestClient instances. (#2363)ConfigureAwait(false) missing on several await calls, preventing deadlocks in sync-over-async scenarios. (#2367)ResponseUri returning original URL instead of redirect target when FollowRedirects=false. (#2350)BuildUriString without execute). (#2349)AddQueryParameter is used with encode=false. (#2345)XmlDeserializer when XML uses same tag name in nested elements. (#2339)UseDefaultCredentials property order on HttpClientHandler. (#2353)Fix XmlDeserializer to use Elements() instead of Descendants() for nested XML
Fix XmlDeserializer to use Elements() instead of Descendants() for nested XML
Fix XmlDeserializer nested element bugs
Co-authored-by: Copilot 198982749+Copilot@users.noreply.github.com
Upgrade to support .NET 9 by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/2275
404 response code means succes by @jnoordsij in https://github.com/restsharp/RestSharp/pull/2281Full Changelog: https://github.com/restsharp/RestSharp/compare/112.1.0...113.0.0
Removed \t from invalid header value characters as the aim was to handle CRLF
\t from invalid header value characters as the aim was to handle CRLFFull Changelog: https://github.com/restsharp/RestSharp/compare/112.0.0...112.1.0
Don't allow CRLF in headers by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/2258
Full Changelog: https://github.com/restsharp/RestSharp/compare/111.4.1...112.0.0
Allow setting parameter content type by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/2249
Full Changelog: https://github.com/restsharp/RestSharp/compare/111.4.0...111.4.1
Doc versions and response section by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/2232
Full Changelog: https://github.com/restsharp/RestSharp/compare/111.3.0...111.4.0
Fix spelling in docs sidebar by @Strepto in https://github.com/restsharp/RestSharp/pull/2218
Full Changelog: https://github.com/restsharp/RestSharp/compare/111.2.0...111.3.0
Fix null reference exception when disposing response content by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/2201
Execute(request) without methodFull Changelog: https://github.com/restsharp/RestSharp/compare/111.1.0...111.2.0
Add tests to OAuth1 signature and revert accidental authenticator renames
Add tests to OAuth1 signature and revert accidental authenticator renames
Fix wrong timeout endpoint
Support file uploading without multipart/form-data by @RomanSoloweow in https://github.com/restsharp/RestSharp/pull/2068
Full Changelog: https://github.com/restsharp/RestSharp/compare/110.2.0...111.0.0
Add CacheControl and fix response writers by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/2053
Full Changelog: https://github.com/restsharp/RestSharp/compare/110.1.0...110.2.0
Fix unsupported platform issues by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/2044
AddJsonBody overload to serialise top-level string by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/2043Full Changelog: https://github.com/restsharp/RestSharp/compare/110.0.0...110.1.0
Added default parameters to the request. They got missing somehow. by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/2021
The IRestClient interface signature is different, so any non-standard implementations need to adopt the changes.
To keep DefaultParameters thread-safe, it got a new type DefaultParameters, and request property Parameters has a dedicated type RequestParameter. Code-wise the change is non-breaking as the signatures are the same, but v110 is not binary compatible with previous versions. The difference is that DefaultParameters collection wraps all its mutations in a lock.
Full Changelog: https://github.com/restsharp/RestSharp/compare/109.0.1...110.0.0
Fixed a bug causing duplicate user-agent headers when using a shared HttpClient. by @tacosontitan in https://github.com/restsharp/RestSharp/pull/2008
HttpClient. by @tacosontitan in https://github.com/restsharp/RestSharp/pull/2008Full Changelog: https://github.com/restsharp/RestSharp/compare/109.0.0...109.0.1
Removed support of .NET 5. Added .NET Framework 4.7.1.
JwtAuthenticator with token includes Bearer prefix by @nivmeshorer in https://github.com/restsharp/RestSharp/pull/1949CsvConfiguration when reading by @electrokit in https://github.com/restsharp/RestSharp/pull/1965RequestMessage by @adegwerth in https://github.com/restsharp/RestSharp/pull/1989RestRequestExtension.cs by @ztl8702 in https://github.com/restsharp/RestSharp/pull/1986IRestClient interfaceOptions property is using read-only options class, so it won't be possible to re-assign options that configure HTTP client and message handlerFull Changelog: https://github.com/restsharp/RestSharp/compare/108.0.3...109.0.0
Nothing published for this version
Fixed binary compatibility issue in AddFile
AddFile (#1953)Full Changelog: https://github.com/restsharp/RestSharp/compare/108.0.2...108.0.3
Fixes #1828 by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/1887
Full Changelog: https://github.com/restsharp/RestSharp/compare/108.0.1...108.0.2
[Added array parsing to AddObject with []]
Full Changelog: https://github.com/restsharp/RestSharp/compare/108.0.0...108.0.1
Fixing incorrect BOM handling in the response by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/1781
Full Changelog: https://github.com/restsharp/RestSharp/compare/107.3.0...108.0.0
Add the possibility to configure default headers of HttpClient by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/1738
CompletedFull Changelog: https://github.com/restsharp/RestSharp/compare/107.2.1...107.3.0
Fixed AddCookie failing with null value as cookie domain
AddCookie failing with null value as cookie domaindoc: fixed return value of RestClient.PostAsync() by @ivosnoza in https://github.com/restsharp/RestSharp/pull/1723
Full Changelog: https://github.com/restsharp/RestSharp/compare/107.1.2...107.2.0
Added back the form part content type as a name #1716
Accept header values #1707HttpClient disposal #1711Added DataType.Binary and corresponding body handling
DataType.Binary and corresponding body handlingGetJsonAsync, etc)SEARCH verb handlingFull Changelog: https://github.com/restsharp/RestSharp/compare/107.0.3...107.1.1
Nothing published for this version
Use CharSet from ContentType for decoding the request content. If not specified, use Encoding from RestClientOptions (default utf-8)
Encoding from RestClientOptions (default utf-8)ThrowOnAnyError being ignored for unsuccessful callsAdded generic overloads for adding parameters with the type constrained to struct as part of #1682 fix
x-www-form-urlencoded by default unless there's a body or multipart form is set in optionsDisableCharset to make servers that don't support charset in Content-Type happierstruct as part of #1682 fixRestResponse.ContentHeaders collection #1684using for #1685Full Changelog: https://github.com/restsharp/RestSharp/compare/107.0.1...107.0.2
Removed default encoding for header parameters
Full Changelog: https://github.com/restsharp/RestSharp/compare/107.0.0...107.0.1
This release includes major breaking changes:
First preview release using HttpClient.
Check the initial migration guide.
This release includes major breaking changes:
IRestClient is removed, use RestClient class insteadIRestRequest is removed, use RestRequest class insteadIRestResponse is removed, use RestResponse class insteadRestClientOptions as they can't be changed after creating the HttpMessageHandler instanceParameter is now an abstract record. Use specific parameter types like QueryParameterSystem.Text.Json, SimpleJson is goneUse request body content type instead of default one by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/1659
Full Changelog: https://github.com/restsharp/RestSharp/compare/106.14.0...106.15.0
Made the Parameter class no obsolete by @alexeyzimarev in https://github.com/restsharp/RestSharp/pull/1644
Fixes CVE-2021-27293: Fix NewDateRegex #1556
Full Changelog: https://github.com/restsharp/RestSharp/compare/106.11.7...106.12.0
Nothing published for this version
Nothing published for this version
Closed several culture-related issues
Fixed Xamarin encoding lookup issue
Fixing the url parameter encoding replace
Fixing the url parameter encoding replace
Nothing published for this version
Nothing published for this version
Assembly version to match the file version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.