Skip to content

open-fluent/client

Fluent Framework

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.

GitHub license Contributors

Packages

Package Description NuGet
Fluent.Client Chainable HTTP client wrapper for .NET NuGet
Fluent.Client.AwesomeAssertions HTTP response assertions for integration tests NuGet

Getting started

dotnet add package Fluent.Client
using 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.AwesomeAssertions
using Fluent.Client.AwesomeAssertions;

await client
    .Post("/api/users", new { Name = "John" })
    .Should()
    .Succeed("because valid data was provided");

Building from source

Requires .NET 10 SDK or later.

git clone https://github.com/lepoco/fluent.git
cd fluent
dotnet build
dotnet test

Contributing

Pull 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.

License

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.

About

A modern collection of libraries for .NET applications. Build better .NET applications with fluent, expressive APIs across HTTP, UI, and more.

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Contributors

Languages