RestSharp 110.2.1-alpha.0.22

RestSharp - Simple .NET REST Client

RestSharp is a lightweight HTTP API client library. It's a wrapper around HttpClient, not a full-fledged client on its own.

What RestSharp adds to HttpClient:

  • Default parameters of any kind, not just headers
  • Add a parameter of any kind to requests, like query, URL segment, header, cookie, or body
  • Multiple ways to add a request body, including JSON, XML, URL-encoded form data, multipart form data with and without files
  • Built-in serialization and deserilization of JSON, XML, and CSV, as well as the ability to add custom serializers
  • Rich support for authentication

Compatibility note

RestSharp 107 was a major release that brings a lot of changes. We've removed a lot of legacy code and added new features. Finally, RestSharp has moved to HttpClient. We also deprecated the following:

  • SimpleJson in favour of System.Text.Json.JsonSerialzer
  • IRestRequest, and IRestResponse in favour of implementing classes
  • Everything Http and IHttp as those are just wrappers
  • Client configuration moved to RestClientOptions to make the client thread-safe
  • IRestClient interface surface substantially reduced

Most of the client and some of the request options are now in RestClientOptions.

Check v107+ docs for more information.

Packages

Package What it's for
RestSharp The core library, including System.Text.Json serializer and basical XML serializer
RestSharp.Serializers.NewtonsoftJson Use Newtonsoft.Json as a JSON serializer
RestSharp.Serializers.Xml Use custom RestSharp XML serializer for XML
RestSharp.Serializers.CsvHelper Use CsvHelper as a CSV serializer

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

Users violated the aforementioned code of conduct will be blocked.

Support

RestSharp is an open-source project with a single maintainer. Do not expect your issue to be resolved unless it concerns a large group of RestSharp users. The best way to resolve your issue is to fix it yourself. Fork the repository and submit a pull request. You can also motivate the maintainer by sponsoring this project.

Contribute

Please read CONTRIBUTING.md for details on the process for reporting issues and submitting pull requests.

Get help

Read the docs: Official Site

Ask a question on StackOverflow with the tag restsharp.

Join RestSharp Discord server: Discord

Find RestSharp on Twitter: @RestSharp

Community

.NET Foundation

This project is a part of the .NET Foundation.

Code Contributors

This project exists thanks to all the people who contribute.

Financial Contributors

Become a financial contributor and help us sustain our community. Contribute

License

Apache License 2.0

No packages depend on RestSharp.

.NET Framework 4.7.1

.NET Framework 4.8

.NET 6.0

  • No dependencies.

.NET 7.0

  • No dependencies.

.NET 8.0

  • No dependencies.

.NET Standard 2.0

Version Downloads Last updated
112.1.0 3 10/08/2024
112.0.1-alpha.0.1 2 10/06/2024
112.0.0 16 08/30/2024
111.4.2-alpha.0.3 1 10/21/2024
111.4.1 44 08/03/2024
111.4.1-alpha.0.7 13 08/16/2024
111.4.1-alpha.0.1 12 08/10/2024
111.4.0 23 07/22/2024
111.3.1-alpha.0.7 21 07/22/2024
111.3.1-alpha.0.6 20 07/22/2024
111.3.1-alpha.0.5 13 07/22/2024
111.3.1-alpha.0.3 14 07/22/2024
111.3.1-alpha.0.2 18 07/22/2024
111.3.1-alpha.0.1 15 07/22/2024
111.3.0 41 06/27/2024
111.2.1-alpha.0.6 22 07/22/2024
111.2.1-alpha.0.5 17 07/22/2024
111.2.1-alpha.0.3 24 07/22/2024
111.2.1-alpha.0.2 15 07/22/2024
111.2.0 13 07/22/2024
111.1.1-alpha.0.4 21 07/22/2024
111.1.1-alpha.0.3 17 07/22/2024
111.1.1-alpha.0.2 12 07/22/2024
111.1.0 16 07/22/2024
111.0.1-alpha.0.8 22 07/22/2024
111.0.1-alpha.0.7 11 07/22/2024
111.0.1-alpha.0.5 21 07/22/2024
111.0.1-alpha.0.4 16 07/22/2024
111.0.1-alpha.0.3 14 07/19/2024
111.0.1-alpha.0.1 15 07/22/2024
111.0.0 19 07/22/2024
110.2.1-alpha.0.26 10 07/22/2024
110.2.1-alpha.0.24 20 07/22/2024
110.2.1-alpha.0.23 12 07/22/2024
110.2.1-alpha.0.22 19 07/22/2024
110.2.1-alpha.0.20 16 07/22/2024
110.2.1-alpha.0.16 13 07/22/2024
110.2.1-alpha.0.15 15 07/22/2024
110.2.1-alpha.0.13 17 07/22/2024
110.2.1-alpha.0.11 15 07/22/2024
110.2.1-alpha.0.10 9 07/22/2024
110.2.1-alpha.0.9 14 07/22/2024
110.2.1-alpha.0.8 16 07/22/2024
110.2.1-alpha.0.7 14 07/22/2024
110.2.1-alpha.0.6 16 07/22/2024
110.2.1-alpha.0.5 16 07/22/2024
110.2.1-alpha.0.3 13 07/22/2024
110.2.1-alpha.0.2 22 07/22/2024
110.2.1-alpha.0.1 10 07/22/2024
110.2.0 115 02/05/2024
110.1.1-alpha.0.7 23 07/22/2024
110.1.1-alpha.0.6 16 07/22/2024
110.1.1-alpha.0.5 21 07/22/2024
110.1.1-alpha.0.4 18 07/22/2024
110.1.0 16 07/22/2024
110.0.1-alpha.0.4 13 07/22/2024
110.0.1-alpha.0.3 17 07/22/2024
110.0.1-alpha.0.2 19 07/22/2024
110.0.1-alpha.0.1 14 07/22/2024
110.0.0 28 07/22/2024
109.0.2-alpha.0.7 14 07/22/2024
109.0.2-alpha.0.6 12 07/22/2024
109.0.2-alpha.0.5 19 07/22/2024
109.0.2-alpha.0.2 18 07/22/2024
109.0.1 21 07/22/2024
109.0.0 28 07/22/2024
109.0.0-preview.2 18 07/22/2024
109.0.0-preview.1 12 07/22/2024
108.0.4-alpha.0.29 12 07/22/2024
108.0.4-alpha.0.28 18 07/22/2024
108.0.4-alpha.0.27 17 07/22/2024
108.0.4-alpha.0.26 9 07/22/2024
108.0.4-alpha.0.25 15 07/22/2024
108.0.4-alpha.0.22 16 07/22/2024
108.0.4-alpha.0.21 13 07/22/2024
108.0.4-alpha.0.20 21 07/22/2024
108.0.4-alpha.0.19 21 07/22/2024
108.0.4-alpha.0.18 22 07/22/2024
108.0.4-alpha.0.17 14 07/22/2024
108.0.4-alpha.0.16 16 07/22/2024
108.0.3 23 02/04/2024
108.0.3-alpha.0.20 10 07/22/2024
108.0.3-alpha.0.19 19 07/22/2024
108.0.3-alpha.0.18 22 07/22/2024
108.0.3-alpha.0.11 19 07/22/2024
108.0.3-alpha.0.10 18 07/22/2024
108.0.3-alpha.0.9 14 07/22/2024
108.0.3-alpha.0.8 13 07/22/2024
108.0.3-alpha.0.5 16 07/22/2024
108.0.3-alpha.0.4 16 07/22/2024
108.0.2 16 07/22/2024
108.0.2-alpha.0.11 9 07/22/2024
108.0.2-alpha.0.10 15 07/22/2024
108.0.2-alpha.0.9 17 07/22/2024
108.0.2-alpha.0.8 15 07/22/2024
108.0.2-alpha.0.6 15 07/22/2024
108.0.2-alpha.0.5 12 07/22/2024
108.0.2-alpha.0.4 17 07/22/2024
108.0.2-alpha.0.2 17 07/22/2024
108.0.2-alpha.0.1 9 07/22/2024
108.0.1 15 07/22/2024
108.0.1-alpha.0.1 20 07/22/2024
108.0.0 22 07/22/2024
107.3.1-alpha.0.40 11 07/22/2024
107.3.1-alpha.0.39 18 07/22/2024
107.3.1-alpha.0.38 14 07/22/2024
107.3.1-alpha.0.26 22 07/22/2024
107.3.1-alpha.0.24 12 07/22/2024
107.3.1-alpha.0.23 16 07/22/2024
107.3.1-alpha.0.20 19 07/22/2024
107.3.1-alpha.0.19 16 07/22/2024
107.3.1-alpha.0.18 19 07/22/2024
107.3.1-alpha.0.17 12 07/22/2024
107.3.1-alpha.0.16 16 07/22/2024
107.3.1-alpha.0.15 12 07/22/2024
107.3.1-alpha.0.14 10 07/22/2024
107.3.1-alpha.0.13 20 07/22/2024
107.3.1-alpha.0.6 12 07/22/2024
107.3.1-alpha.0.5 18 07/22/2024
107.3.0 22 07/22/2024
107.2.2-alpha.0.7 25 07/22/2024
107.2.2-alpha.0.6 13 07/22/2024
107.2.2-alpha.0.5 20 07/22/2024
107.2.2-alpha.0.1 20 07/22/2024
107.2.1 16 07/22/2024
107.2.1-alpha.0.3 16 07/22/2024
107.2.0 14 07/22/2024
107.1.3-alpha.0.7 12 07/22/2024
107.1.3-alpha.0.6 17 07/22/2024
107.1.3-alpha.0.5 14 07/22/2024
107.1.3-alpha.0.2 14 07/22/2024
107.1.2 20 07/22/2024
107.1.2-alpha.0.19 11 07/22/2024
107.1.2-alpha.0.18 13 07/22/2024
107.1.2-alpha.0.14 16 07/22/2024
107.1.2-alpha.0.13 23 07/22/2024
107.1.2-alpha.0.12 14 07/22/2024
107.1.2-alpha.0.10 13 07/22/2024
107.1.2-alpha.0.9 17 07/22/2024
107.1.2-alpha.0.8 19 07/22/2024
107.1.2-alpha.0.7 21 08/14/2024
107.1.2-alpha.0.4 16 07/22/2024
107.1.2-alpha.0.3 10 07/22/2024
107.1.2-alpha.0.1 17 07/22/2024
107.1.1 22 07/22/2024
107.1.1-alpha.0.3 11 07/22/2024
107.1.1-alpha.0.1 17 07/22/2024
107.1.0 19 07/22/2024
107.0.4-alpha.0.11 18 07/22/2024
107.0.4-alpha.0.9 21 07/22/2024
107.0.4-alpha.0.6 12 07/22/2024
107.0.4-alpha.0.5 12 07/22/2024
107.0.4-alpha.0.4 10 07/22/2024
107.0.3 14 07/22/2024
107.0.3-alpha.0.4 25 07/22/2024
107.0.3-alpha.0.2 15 07/22/2024
107.0.3-alpha.0.1 18 07/22/2024
107.0.2 17 07/22/2024
107.0.2-alpha.0.6 15 07/22/2024
107.0.2-alpha.0.5 16 07/22/2024
107.0.2-alpha.0.4 14 07/22/2024
107.0.2-alpha.0.3 15 07/22/2024
107.0.2-alpha.0.2 12 07/22/2024
107.0.2-alpha.0.1 16 07/22/2024
107.0.1 15 07/22/2024
107.0.1-alpha.0.2 20 07/22/2024
107.0.1-alpha.0.1 19 07/22/2024
107.0.0-preview.20 21 07/22/2024
107.0.0-preview.19 11 07/22/2024
107.0.0-preview.18 15 07/22/2024
107.0.0-preview.17 16 07/22/2024
107.0.0-preview.14 17 07/22/2024
107.0.0-preview.13 17 07/22/2024
107.0.0-preview.12 9 07/22/2024
107.0.0-preview.11 16 07/22/2024
107.0.0-preview.10 12 07/22/2024
107.0.0-preview.9 12 07/22/2024
107.0.0-preview.8 16 07/22/2024
107.0.0-preview.7 13 07/22/2024
107.0.0-preview.6 20 07/22/2024
107.0.0-preview.5 15 07/22/2024
107.0.0-preview.4 17 07/22/2024
107.0.0-preview.2 13 07/22/2024
107.0.0-preview.1 21 07/22/2024
106.15.1-alpha.0.1 13 07/22/2024
106.15.0 13 07/22/2024
106.14.1-alpha.0.2 8 07/22/2024
106.13.0 7 07/22/2024
106.12.0 20 07/22/2024
106.11.8-alpha.0.40 23 07/22/2024
106.11.8-alpha.0.39 16 07/22/2024
106.11.8-alpha.0.34 18 08/08/2024
106.11.8-alpha.0.14 13 07/22/2024
106.11.8-alpha.0.13 24 07/22/2024
106.11.8-alpha.0.12 11 07/22/2024
106.11.8-alpha.0.11 16 07/22/2024
106.11.8-alpha.0.10 21 07/22/2024
106.11.8-alpha.0.7 15 07/22/2024
106.11.8-alpha.0.6 14 07/22/2024
106.11.8-alpha.0.4 11 07/22/2024
106.11.8-alpha.0.3 19 07/22/2024
106.11.8-alpha.0.2 20 07/22/2024
106.11.7 22 07/22/2024
106.11.6-alpha.0.1 19 07/22/2024
106.11.5 19 07/22/2024
106.11.5-alpha.0.21 19 07/22/2024
106.11.5-alpha.0.20 16 07/22/2024
106.11.5-alpha.0.18 17 07/22/2024
106.11.5-alpha.0.17 18 07/22/2024
106.11.5-alpha.0.2 21 07/22/2024
106.11.5-alpha.0.1 20 07/22/2024
106.11.4 22 07/22/2024
106.11.3-alpha.0.6 15 07/22/2024
106.11.3-alpha.0.1 3 07/22/2024
106.11.2 22 07/22/2024
106.11.1-alpha.0.5 18 07/22/2024
106.11.1-alpha.0.1 14 07/22/2024
106.10.2-alpha.0.18 12 07/22/2024
106.10.2-alpha.0.16 16 07/22/2024
106.10.2-alpha.0.15 16 07/22/2024
106.10.2-alpha.0.8 14 07/22/2024
106.10.2-alpha.0.4 14 07/22/2024
106.10.2-alpha.0.3 20 07/22/2024
106.10.1 16 07/22/2024
106.10.1-alpha.0.15 16 07/22/2024
106.10.1-alpha.0.9 12 07/22/2024
106.10.1-alpha.0.8 14 07/22/2024
106.10.0 17 07/22/2024
106.9.1-alpha.0.36 20 07/22/2024
106.9.1-alpha.0.35 10 07/22/2024
106.9.1-alpha.0.34 23 07/22/2024
106.9.1-alpha.0.21 17 07/22/2024
106.9.1-alpha.0.19 15 07/22/2024
106.9.1-alpha.0.18 3 07/22/2024
106.9.1-alpha.0.17 18 07/22/2024
106.9.1-alpha.0.15 20 07/22/2024
106.9.1-alpha.0.11 20 07/22/2024
106.9.1-alpha.0.10 21 07/22/2024
106.9.1-alpha.0.3 15 07/22/2024
106.9.0 18 07/22/2024
106.8.10-alpha.0.15 15 07/22/2024
106.8.10-alpha.0.13 15 07/22/2024
106.8.10-alpha.0.12 13 07/22/2024
106.8.10-alpha.0.11 18 07/22/2024
106.8.10-alpha.0.10 19 07/22/2024
106.8.10-alpha.0.9 14 07/22/2024
106.8.10-alpha.0.8 15 07/22/2024
106.8.10-alpha.0.7 15 07/22/2024
106.8.10-alpha.0.4 13 07/22/2024
106.8.10-alpha.0.3 16 07/22/2024
106.8.0 11 07/22/2024
106.7.1-alpha.0.22 13 07/22/2024
106.7.1-alpha.0.21 13 07/22/2024
106.7.1-alpha.0.20 3 07/22/2024
106.6.10 10 07/22/2024
106.6.9 12 07/22/2024
106.6.7 13 07/22/2024
106.6.6 10 07/22/2024
106.6.5 14 07/22/2024
106.6.4 20 07/22/2024
106.6.3 22 07/22/2024
106.6.2 17 07/22/2024
106.5.4 13 07/22/2024
106.5.3 19 07/22/2024
106.5.2 10 07/22/2024
106.5.1 17 07/22/2024
106.5.0 16 07/22/2024
106.4.2 18 07/22/2024
106.4.1 16 07/22/2024
106.4.0 13 07/22/2024
106.3.1 12 07/22/2024
106.3.0 16 07/22/2024
106.2.2 13 07/22/2024
106.2.1 21 07/22/2024
106.2.0 14 07/22/2024
106.2.0-alpha0060 18 07/22/2024
106.2.0-alpha0032 15 07/22/2024
106.2.0-alpha0025 15 07/22/2024
106.1.0 21 07/22/2024
106.1.0-alpha0038 17 07/22/2024
106.0.1 13 07/22/2024
106.0.0 14 07/22/2024
106.0.0-alpha0284 12 07/22/2024
106.0.0-alpha0282 17 07/22/2024
106.0.0-alpha0277 21 07/22/2024
105.2.3 13 07/22/2024
105.2.2 13 07/22/2024
105.2.1 15 07/22/2024
105.1.0 20 07/22/2024
105.0.1 13 07/22/2024
105.0.0 23 07/22/2024
104.5.0 17 07/22/2024
104.4.0 15 07/22/2024
104.3.3 12 07/22/2024
104.2.0 16 07/22/2024
104.1.0 15 07/22/2024
104.0.0 14 07/17/2024