RestSharp is probably the most popular HTTP client library for .NET. Featuring automatic serialization and deserialization, request and response type detection, variety of authentications and other useful features, it is being used by hundreds of thousands of projects. RestSharp passed over 32 million downloads on NuGet, with average daily download count of 10,000. It's being used by many popular OSS projects, including Roslyn and Swagger. The main purpose of RestSharp is to make synchronous and asynchronous calls to remote resources over HTTP. As the name suggests, the main audience of RestSharp are developers who use REST APIs. However, RestSharp can call any API over HTTP (but not HTTP/2), as long as you have the resource URI and request parameters that you want to send comply with W3C HTTP standards. RestSharp can take care of serializing the request body to JSON or XML and deserialize the response. It can also form a valid request URI based on different parameter kinds.

Features

  • JSON, XML and custom serialization and deserialization
  • Variety of overloads to make synchronous and asynchronous HTTP calls
  • Almost every aspect of an HTTP call can be customized
  • Basic, OAuth 1, OAuth 2, JWT, NTLM are supported, or write your own!
  • Send objects as the request body in JSON or XML, or as a form. Upload and download files as bytes or as streams
  • Add query, URL segment, body, form or header parameter using an easy and fluent API

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow RestSharp

RestSharp Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of RestSharp!

Additional Project Details

Programming Language

C#

Related Categories

C# HTTP Clients, C# JSON Serialization Libraries, C# XML Serialization Libraries, C# API Clients

Registered

2021-07-06