RestSharp 110.2.1-alpha.0.26

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

Showing the top 20 packages that depend on RestSharp.

Packages Downloads
MT.PACKAGE.UTILITY
妙探科技nuget工具包
253
MT.PACKAGE.UTILITY
妙探科技nuget工具包 1、添加日期转财务报表报告期DateTime扩展方法
93
RestSharp.Serializers.NewtonsoftJson
Simple REST and HTTP API Client
90
Minio
Minio .NET SDK for Amazon S3 Compatible Cloud Storage.
24
WolframAlphaNet
A full implementation of the WolframAlpha 2.0 API
23
Minio
Minio .NET SDK for Amazon S3 Compatible Cloud Storage.
15
Minio
Minio .NET SDK for Amazon S3 Compatible Cloud Storage.
14
Minio
Minio .NET SDK for Amazon S3 Compatible Cloud Storage.
13
Minio
Minio .NET SDK for Amazon S3 Compatible Cloud Storage
13
RestSharp.Serializers.NewtonsoftJson
Simple REST and HTTP API Client
13
Minio
Minio .NET Library for Amazon S3 Compatible Cloud Storage
13

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