Configuration
Learn how to configure RestClient for non-trivial use cases.
Authenticators
RestSharp includes authenticators for basic HTTP, OAuth1 and token-based (JWT and OAuth2).
Error handling
If there is a network transport error (network is down, failed DNS lookup, etc), or any kind of server error (except 404), RestResponse.ResponseStatus will be set to ResponseStatus.Error, otherwise it will be ResponseStatus.Completed.
Interceptors
Intercepting requests and responses
Serialization
One of the most common reasons to choose RestSharp over plain HttpClient is its rich build-in serialization support. RestSharp allows adding complex objects as request body to be serialized when making a call to an API endpoint, and deserializing the response to a given .NET type. RestSharp supports JSON and XML serialization and deserialization by default. In addition, you can use a CSV serializer or write your own.