Created with ❤ in Poland by Leszek Pomianowski and open-source community.
A collection of small, independent .NET libraries that wrap common infrastructure with a chainable API.
| Package | Description | NuGet |
|---|---|---|
| Fluent.Client | Chainable HTTP client wrapper for .NET | |
| Fluent.Client.AwesomeAssertions | HTTP response assertions for integration tests |
dotnet add package Fluent.Clientusing Fluent.Client;
var client = new HttpClient { BaseAddress = new Uri("https://api.example.com/") };
using var response = await client
.Authorize(token: "jwt-token")
.Post("/api/users", new { Name = "John" });Pair it with Fluent.Client.AwesomeAssertions for integration tests:
dotnet add package Fluent.Client.AwesomeAssertionsusing Fluent.Client.AwesomeAssertions;
await client
.Post("/api/users", new { Name = "John" })
.Should()
.Succeed("because valid data was provided");Requires .NET 10 SDK or later.
git clone https://github.com/lepoco/fluent.git
cd fluent
dotnet build
dotnet testPull requests are welcome. See Contributing.md for details on branching, commit conventions, and code style.
For bug reports and feature requests, open a GitHub issue. Longer discussions belong in GitHub Discussions.
Fluent Framework is free and open source software licensed under the MIT License. You can use it in private and commercial projects.
Keep in mind that you must include a copy of the license in your project.