- Home
- API clients
- Refit
On the recordRead 11 Oct 202623 facts
Refit
On the record
- Ahead-of-time compilation
- Refit documents generated clients and JSON code for apps compiled ahead of time.reactiveui.net · read 11 Oct 2026
- Automated test runs
- Yesreactiveui.github.io · read 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.github.com · read 11 Oct 2026
- Dependency injection
- Refit.HttpClientFactory registers clients with dependency injection and IHttpClientFactory.github.com · read 11 Oct 2026
- Diagnostics
- Refit has a diagnostics guide for observing client activity.reactiveui.net · read 11 Oct 2026
- History
- The license file says Anna Betts created Refit in 2012 and ReactiveUI has maintained it since.github.com · read 11 Oct 2026
- HTTP client
- Generated implementations send requests through HttpClient, which the app controls.reactiveui.net · read 11 Oct 2026
- HTTP client control
- Applications retain control of HttpClient, cancellation, and serialization.github.com · read 11 Oct 2026
- Integration
- Refit uses HttpClient and documents registering clients with dependency injection.reactiveui.net · read 11 Oct 2026
- License
- The Refit project is licensed under the MIT license.github.com · read 11 Oct 2026
- Native AOT
- The documentation describes generated clients and JSON metadata for apps compiled ahead of time.reactiveui.net · read 11 Oct 2026
- Package
- The project instructs users to install the Refit NuGet package in the project that declares the interface.reactiveui.net · read 11 Oct 2026
- Purpose
- Refit lets an app describe web service calls on C# interfaces and generates their implementations during the build.reactiveui.net · read 11 Oct 2026
- Request definition
- Attributes on interface methods describe HTTP methods, routes, headers, and request bodies.github.com · read 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>.github.com · read 11 Oct 2026
- Request types
- Refit supports routes and HTTP methods, including route placeholders populated from method arguments.reactiveui.net · read 11 Oct 2026
- Return types
- The documentation lists Task<T>, ValueTask<T>, IObservable<T>, response wrappers and IAsyncEnumerable<T> for streaming replies.reactiveui.net · read 11 Oct 2026
- Serialization
- Refit reads and writes JSON with System.Text.Json and can use its source-generated metadata.reactiveui.net · read 11 Oct 2026