Fluent.Client
1.0.0-preview.1
See the version list below for details.
dotnet add package Fluent.Client --version 1.0.0-preview.1
NuGet\Install-Package Fluent.Client -Version 1.0.0-preview.1
<PackageReference Include="Fluent.Client" Version="1.0.0-preview.1" />
<PackageVersion Include="Fluent.Client" Version="1.0.0-preview.1" />
<PackageReference Include="Fluent.Client" />
paket add Fluent.Client --version 1.0.0-preview.1
#r "nuget: Fluent.Client, 1.0.0-preview.1"
#:package Fluent.Client@1.0.0-preview.1
#addin nuget:?package=Fluent.Client&version=1.0.0-preview.1&prerelease
#tool nuget:?package=Fluent.Client&version=1.0.0-preview.1&prerelease
Fluent Client for .NET HttpClient.
Created in Poland by Leszek Pomianowski and open-source community.
Fluent Client provides a way to build HTTP requests. It acts as a wrapper around the standard HttpClient, allowing you to set up your requests with a body, headers, queries, and other parameters before sending them.
Getting started
You can add it to your project using .NET CLI:
dotnet add package Fluent.Client
How to use
1. Create a request
You can start by creating a request with a body using the With method on your HttpClient.
using Fluent.HttpClient;
var client = new HttpClient();
client.BaseAddress = new Uri("https://api.example.com/");
var request = client.Post("/api/v1/users", new { Name = "John Doe" });
2. Configure the request
You can configure its properties like the path, HTTP method, and headers.
client.Authorize(token: "123").Delete("/api/v1/users/897");
3. Send the request
You can send the request and get the response message, or automatically deserialize the response content.
// Send and get the HttpResponseMessage
using HttpResponseMessage response = await request.SendAsync();
// or send and deserialize the response
UserCreatedResponse result = await request.SendAsync<UserCreatedResponse>();
Code of Conduct
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.
License
Fluent HttpClient is free and open source software licensed under 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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net472 is compatible. net48 was computed. net481 is compatible. |
-
.NETFramework 4.7.2
- System.Text.Json (>= 10.0.1)
-
.NETFramework 4.8.1
- System.Text.Json (>= 10.0.1)
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 39 | 3/5/2026 |
| 1.0.2 | 129 | 2/6/2026 |
| 1.0.1 | 129 | 1/10/2026 |
| 1.0.0 | 99 | 1/9/2026 |
| 1.0.0-preview.2 | 83 | 1/9/2026 |
| 1.0.0-preview.1 | 57 | 1/9/2026 |