You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The best .NET REST API Client with task-based async, strong types, and dependency injection on all platforms. Consume your ASP .NET Core Web APIs or consume RESTful APIs over the internet in C#, F#, or Visual Basic. It's designed for functional-style programming with F# in mind.
7
+
RestClient.Net is a powerful .NET REST API client that features task-based async, strong types, and dependency injection support for all platforms. Use it to consume ASP.NET Core Web APIs or interact with RESTful APIs over the internet in C#, F#, or Visual Basic. It's designed with functional-style programming and F# in mind.
This version upgrades all dependencies and targets all the major versions: 4.5, 5, 6, 7.
17
+
This release updates all dependencies and targets major versions of .NET: 4.5, 5, 6, and 7.
18
18
19
19
### [Follow Me on Twitter for Updates](https://twitter.com/intent/follow?screen_name=cfdevelop&tw_p=followbutton) ##
20
20
21
-
### Why You Should Use It ###
22
21
23
-
* Treats Urls as first-class citizens with [Urls](https://github.com/MelbourneDeveloper/Urls). URLs are immutable [records](https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/records) and have a fluent API for construction.
24
-
* Designed for Dependency Injection. Mock your REST calls and add RestClient.Net to your IoC container with one line of code
25
-
* Async friendly. All operations use async, await keywords
* The library is decoupled from Newtsonsoft so that you can use any serialization method or version of Newtonsoft. This means that you can use it with any version of Azure Functions.
28
-
* Install from NuGet on any platform from .NET Framework 4.5 up to .NET 5. Supports Xamarin (Mono, iOS, Android), UWP, [WebAssembly](https://github.com/MelbourneDeveloper/RestClient.Net/wiki/Web-Assembly-Support) and Unity with .NET Standard 2.0
29
-
* Supports GET, POST, PUT, PATCH, DELETE with ability and custom methods
30
-
* Tight code and complete test coverage means you can make a change if you need to
* Fluent API for construction, non-destructive mutation, and Url construction
33
-
* Uses [.NET Core Logging - `ILogger`](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-5.0) to allow logging of all aspects of HTTP calls
34
-
* Fluent API
35
-
* Immutable client for thread safety
22
+
### Key Features
23
+
24
+
***First-class URLs**: Utilizes [Urls](https://github.com/MelbourneDeveloper/Urls) to treat URLs as immutable [records](https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/records) with a fluent API for construction.
25
+
***Dependency Injection Support**: Easily mock REST calls and add RestClient.Net to your IoC container with a single line of code.
26
+
***Async-Friendly**: All operations use async and await keywords.
27
+
***Automatic Serialization**: Automatically serializes request/response bodies to/from strong types (JSON, Binary, SOAP, [Google Protocol Buffers](https://developers.google.com/protocol-buffers)). The library is decoupled from Newtonsoft, allowing you to use any serialization method or version of Newtonsoft. This means compatibility with any version of Azure Functions.
28
+
***Cross-Platform Compatibility**: Install from NuGet on any platform from .NET Framework 4.5 up to .NET 5. Supports Xamarin (Mono, iOS, Android), UWP, [WebAssembly](https://github.com/MelbourneDeveloper/RestClient.Net/wiki/Web-Assembly-Support), and Unity with .NET Standard 2.0.
29
+
***HTTP Methods**: Supports GET, POST, PUT, PATCH, DELETE, and custom methods.
30
+
***Fluent API**: Provides a fluent API for construction, non-destructive mutation, and URL construction.
31
+
***Logging**: Uses .NET Core Logging - [`ILogger`](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-5.0) for logging all aspects of HTTP calls.
32
+
***Thread Safety**: Immutable client for thread safety.
33
+
***High-Quality Code**: Tight code and complete test coverage allow you to make changes if needed.
For a complete set of examples, see these [unit tests](https://github.com/MelbourneDeveloper/RestClient.Net/blob/3574038f02a83a299f9536b71c7f839ae72e0e08/src/RestClient.Net.UnitTests/MainUnitTests.cs#L279).
0 commit comments