Fluent.Client 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Fluent.Client --version 1.0.1
                    
NuGet\Install-Package Fluent.Client -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fluent.Client" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fluent.Client" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Fluent.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fluent.Client --version 1.0.1
                    
#r "nuget: Fluent.Client, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fluent.Client@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fluent.Client&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Fluent.Client&version=1.0.1
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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