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
Auth for GenAI | Auth0 Icon
Auth for GenAI | Auth0

Enable AI agents to securely access tools, workflows, and data with fine-grained control and just a few lines of code.

Easily implement secure login experiences for AI Agents - from interactive chatbots to background workers with Auth0. Auth for GenAI is now available in Developer Preview
Try free now
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