Description
RestClient.Net is a C# library for making REST calls with a type-safe, functional style. It works with HttpClient through IHttpClientFactory.CreateClient(), so connections are pooled and DNS changes are handled properly. Instead of throwing exceptions, calls return Result types, which make each error case explicit in the code. An analyzer from the Exhaustion project checks that pattern matches cover every case. The library also reports progress for downloads and uploads, supports Polly retry policies for resilience, and is async and await throughout. Its newer feature generates an MCP server and client code from an OpenAPI 3.x specification. It is the successor to the original RestClient.Net, and the README covers installation, usage and a basic GET request.…
Highlights
- Result types for explicit error handling
- Works with IHttpClientFactory
- Generates MCP servers and client code from OpenAPI
- Progress reporting and Polly retry policies
- Exhaustiveness checks through the Exhaustion analyzer
Ratings & Reviews
No ratings yet
Be the first to rate RestClient.Net.
People also visit
DalSoft.RestClient
The C# REST Client - the only REST/ HTTP Client you will ever need
RestClient.Net FAQ
What is RestClient.Net?
A C# library for REST calls, built with functional patterns and type safety. It succeeds the original RestClient.Net.
How does error handling work?
Calls return Result types instead of throwing exceptions, so each outcome has to be handled in code.
Can it generate code?
Yes. It can generate an MCP server and client code from an OpenAPI 3.x spec.
Does it work with HttpClient?
Yes. It works through IHttpClientFactory.CreateClient(), so the factory manages pooled connections.
What does the Exhaustion analyzer add?
The core install brings in the Exhaustion analyzer, which gives exhaustive pattern matching on result types in C#.
What are the best RestClient.Net alternatives?
Popular alternatives to RestClient.Net include DalSoft.RestClient, RestClient and NativeRest. See all RestClient.Net alternatives




