First preview release using HttpClient.
Check the initial migration guide.
This release includes major breaking changes:
- Interface
IRestClient
is removed, useRestClient
class instead - Interface
IRestRequest
is removed, useRestRequest
class instead - Interface
IRestResponse
is removed, useRestResponse
class instead - Most of the client options are now in
RestClientOptions
as they can't be changed after creating theHttpMessageHandler
instance Parameter
is now an abstract record. Use specific parameter types likeQueryParameter
- All synchronous methods are gone, use asynchronous methods instead
- Default JSON serializer is now using
System.Text.Json
, SimpleJson is gone - Support for .NET 4.5 is removed, for legacy .NET Framework use the .NET Standard package