Disposing

The HttpContent object is disposed for you, so trying to read the Content stream by caling ReadAsStringAsync() etc will throw an exception. You can access the returned content as a string by calling ToString().

Disposing of RestClient and therefore the underline HttpClient is left up to you. The general advise is to create one instance for the lifetime of your application as the RestClient and HttpClient it wraps are generally stateless and reusable across multiple calls.

Since version 3.3.0 you have better control over the underline HttpClient using IHttpClientFactory, which is how I now recommend you use instantiate the RestClient.