Fluens.Web.Http
0.7.6
dotnet add package Fluens.Web.Http --version 0.7.6
NuGet\Install-Package Fluens.Web.Http -Version 0.7.6
<PackageReference Include="Fluens.Web.Http" Version="0.7.6" />
<PackageVersion Include="Fluens.Web.Http" Version="0.7.6" />
<PackageReference Include="Fluens.Web.Http" />
paket add Fluens.Web.Http --version 0.7.6
#r "nuget: Fluens.Web.Http, 0.7.6"
#:package Fluens.Web.Http@0.7.6
#addin nuget:?package=Fluens.Web.Http&version=0.7.6
#tool nuget:?package=Fluens.Web.Http&version=0.7.6
Fluens.Web.Http
HttpClient registration helpers with catalog-backed service discovery, resilience, and logging for Fluens web applications.
Installation
dotnet add package Fluens.Web.Http
Usage
fluensBuilder
.AddHttp()
.AddHttpClient<IOrdersClient, OrdersClient>(opts =>
{
opts.BaseAddress = "http://orders-service"; // host is the catalog service name
opts.EnableResilience = true;
});
When EnableServiceDiscovery is on, the request host (e.g. orders-service) is resolved through the
central IServiceCatalog (registered by Fluens.Web.Discovery via AddDiscovery()); a ServiceDiscoveryHandler
rewrites the request URI to the resolved host/port and throws HttpRequestException when no healthy
instance is available. There is no dependency on Microsoft.Extensions.ServiceDiscovery.
AddHttp() registers a no-op IServiceCatalog default (NullServiceCatalog) via TryAddSingleton, so the
transient ServiceDiscoveryHandler is always constructable even when you do not call AddDiscovery() — this
matters because WebApplication.Build() in the Development environment enables eager DI validation
(ValidateOnBuild/ValidateScopes) and would otherwise fail at startup on the unregistered dependency.
AddDiscovery() overrides the default with the live catalog; with the no-op default in effect every resolve
returns null, surfacing a clear HttpRequestException at request time rather than an opaque startup crash.
Configuration section: Fluens:Http:
{
"Fluens": {
"Http": {
"DefaultTimeoutSeconds": 30,
"EnableServiceDiscovery": true,
"EnableLogging": true
}
}
}
License
This project is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Fluens.Web.Contexts (>= 0.7.6)
- Microsoft.Extensions.Http.Resilience (>= 10.7.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Fluens.Web.Http:
| Package | Downloads |
|---|---|
|
Fluens.Web.Messaging
P2P HTTP/Protobuf mesh adapter for cross-application Fluens messaging, with shared-key signed cluster authentication. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.6 | 115 | 7/1/2026 |
| 0.7.5 | 126 | 6/22/2026 |
| 0.7.4 | 134 | 6/18/2026 |
| 0.7.2 | 117 | 6/18/2026 |
| 0.7.1 | 125 | 6/18/2026 |
| 0.6.6 | 129 | 3/11/2026 |
| 0.6.5 | 113 | 3/4/2026 |
| 0.6.4 | 107 | 3/4/2026 |
| 0.6.3 | 110 | 3/3/2026 |
| 0.6.2 | 120 | 3/2/2026 |
| 0.6.1 | 120 | 3/2/2026 |
| 0.6.0 | 117 | 3/1/2026 |
| 0.5.7 | 119 | 3/1/2026 |
| 0.5.6 | 116 | 3/1/2026 |
| 0.5.5 | 119 | 2/28/2026 |
| 0.5.4 | 115 | 2/28/2026 |
| 0.5.3 | 114 | 2/27/2026 |
| 0.5.2 | 125 | 2/27/2026 |
| 0.5.1 | 118 | 2/27/2026 |
| 0.5.0 | 127 | 2/26/2026 |