EVERYTHING XIAOMI
Get listed

Refit

Place
#34 of 38
Score
6.1
Refit's website

The facts below are what the maker publishes about Refit, checked and dated. Our editors have not written about it yet.

The facts

Each one read from Refit's own pages, with the date it was checked.

What it does

Ahead-of-time compilation
Refit documents generated clients and JSON code for apps compiled ahead of time.checked 11 Oct 2026
Automated test runs
Yeschecked 22 Sep 2026
Build requirements
The source generator requires Roslyn 4.8 or newer and PackageReference; the README names .NET SDK 8.0.100 and Visual Studio 2022 17.8 as providing that compiler baseline.checked 11 Oct 2026
Dependency injection
Refit.HttpClientFactory registers clients with dependency injection and IHttpClientFactory.checked 11 Oct 2026
Diagnostics
Refit has a diagnostics guide for observing client activity.checked 11 Oct 2026
History
The license file says Anna Betts created Refit in 2012 and ReactiveUI has maintained it since.checked 11 Oct 2026
HTTP client
Generated implementations send requests through HttpClient, which the app controls.checked 11 Oct 2026
HTTP client control
Applications retain control of HttpClient, cancellation, and serialization.checked 11 Oct 2026
Integration
Refit uses HttpClient and documents registering clients with dependency injection.checked 11 Oct 2026
License
Refit is distributed under the MIT License.checked 11 Oct 2026
Native AOT
The documentation describes generated clients and JSON metadata for apps compiled ahead of time.checked 11 Oct 2026
Package
The project instructs users to install the Refit NuGet package in the project that declares the interface.checked 11 Oct 2026
Purpose
Refit turns a C# interface into an HTTP client and generates its implementation during the build.checked 11 Oct 2026
Request definition
Attributes on interface methods describe HTTP methods, routes, headers, and request bodies.checked 11 Oct 2026
Requests and responses
The library supports route and query parameters, headers, serialized bodies, forms, and response types including Task<T>, ValueTask<T>, and IObservable<T>.checked 11 Oct 2026
Request types
Refit supports routes and HTTP methods, including route placeholders populated from method arguments.checked 11 Oct 2026
Return types
The documentation lists Task<T>, ValueTask<T>, IObservable<T>, response wrappers and IAsyncEnumerable<T> for streaming replies.checked 11 Oct 2026
Serialization
Refit uses System.Text.Json by default and supports generated JSON metadata; separate packages provide Newtonsoft.Json and XML serializers.checked 11 Oct 2026
Streaming
Refit supports streamed JSON arrays, JSON Lines, and server-sent events.checked 11 Oct 2026
Target frameworks
The source projects target .NET 8, 9, 10, and 11, plus .NET Framework 4.6.2 through 4.8.1.checked 11 Oct 2026
Testing
Refit.Testing can supply local replies, verify outgoing requests, and simulate network faults.checked 11 Oct 2026

Where it runs

Available platforms
web_and_desktopchecked 22 Sep 2026

Money

Free plan
Yeschecked 22 Sep 2026

Alternatives to Refit

All alternatives
  1. 1SoapUI logo

    SoapUI

    Free planOpen sourceAPILinuxmacOSSelf-hosted
    9.0From $1,069 a year
  2. 2

    HTTPie

    Free planOpen sourceWebLinuxmacOSWindows
    9.0From $10 a month
  3. 3Apidog logo

    Apidog

    Free planWebAPIExtensionLinux
    8.8From $9 a month
  4. 4Bruno logo

    Bruno

    Free planOpen sourceAPIExtensionLinuxmacOS
    8.8From $6 a month
  5. 5Postman logo

    Postman

    Free planWebExtensionLinuxmacOS
    8.4From $9 a month
  6. 6ReadyAPI logo

    ReadyAPI

    WebAPILinuxmacOS
    8.3