Skip to main content
Version: v111

Changelog

This changelog is only maintained since v111. For release notes of previous versions, please check the Releases page in RestSharp GitHub repository.

Only the most important or breaking changes are listed there. All other changes can be found in each release on GitHub.

v111.3

New extensions:

  • RestResponse.GetHeader for getting one response header value
  • RestResponse.GetHeaders for getting a collection of header values
  • IRestClient.(Execute)Get(Async) with string resource instead of a request object
  • IRestClient.(Execute)Delete(Async) with string resource instead of a request object

Full changelog

v111.2

  • Execute extensions that were accidentally removed from v111 are back
  • Several authenticators got renamed by unintentional refactoring, that change has also been reverted.

Full changelog

v111.0

warning

Package for v111.0 and v111.1 are listed as unsupported on NuGet as there are API changes that weren't planned. Use the patched version v111.2 or later.

Breaking changes

  • Client option MaxTimeout renamed to Timeout and changed type to Timespan for clarity. It doesn't configure the HttpClient timeout anymore. Instead, the same method is used for client and request level timeouts with cancellation tokens.
  • Request option Timeout changed type to Timespan for clarity.

New features

  • Added interceptors.
  • As interceptors provide a better way to interject the request and response execution flow, request properties OnBeforeRequest, OnBeforeDeserialization and OnAfterRequest are marked obsolete and will be removed in future versions.
  • Added .NET 8 target.
  • Support for uploading files as content without multipart form.
  • Added CacheControl options to client and requests.
  • Allow using AddJsonBody to serialize top-level strings.

Full changelog