About this project

RestSharp is a popular open-source HTTP API client library for the .NET ecosystem. It is not a standalone HTTP client but rather a wrapper around the built-in HttpClient, designed to simplify REST and HTTP API interactions. Key features include: - Default parameters of any kind (not just headers), allowing reusable request configurations. - Flexible parameter addition for queries, URL segments, headers, cookies, and request bodies. - Multiple request body formats: JSON, XML, URL-encoded form data, and multipart form data (with or without file uploads). - Built-in serialization and deserialization for JSON, XML, and CSV, with support for custom serializers. - Rich authentication support for various schemes. Version 107 was a major release that migrated the library to HttpClient, removed legacy code, and deprecated several interfaces (IRestRequest, IRestResponse, IHttp, etc.). Client configuration was moved to RestClientOptions to improve thread safety, and the IRestClient interface surface was substantially reduced. The project offers several NuGet packages: the core RestSharp package (with System.Text.Json and basic XML serializer), plus optional serializer packages for Newtonsoft.Json, custom XML, and CsvHelper. RestSharp is part of the .NET Foundation and is licensed under Apache License 2.0. It is maintained by a single maintainer with contributions from the community.