Fluens.Web.Http 0.7.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package Fluens.Web.Http --version 0.7.7
                    
NuGet\Install-Package Fluens.Web.Http -Version 0.7.7
                    
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="Fluens.Web.Http" Version="0.7.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fluens.Web.Http" Version="0.7.7" />
                    
Directory.Packages.props
<PackageReference Include="Fluens.Web.Http" />
                    
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 Fluens.Web.Http --version 0.7.7
                    
#r "nuget: Fluens.Web.Http, 0.7.7"
                    
#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 Fluens.Web.Http@0.7.7
                    
#: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=Fluens.Web.Http&version=0.7.7
                    
Install as a Cake Addin
#tool nuget:?package=Fluens.Web.Http&version=0.7.7
                    
Install as a Cake Tool

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.

AddHttp() accepts an optional Action<HttpOptions>? configure callback; a callback-only call — with no matching Fluens:Http configuration section present — is still honoured and validated.

Configuration section: Fluens:Http:

{
  "Fluens": {
    "Http": {
      "DefaultTimeoutSeconds": 30,
      "EnableServiceDiscovery": true,
      "EnableLogging": true
    }
  }
}

License

This project is licensed under the MIT License.

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

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.8.1 96 9/15/2026
0.8.0 94 9/15/2026
0.7.11 94 9/15/2026
0.7.10 92 9/13/2026
0.7.9 101 9/11/2026
0.7.8 93 9/10/2026
0.7.7 100 9/10/2026
0.7.6 162 7/1/2026
0.7.5 142 6/22/2026
0.7.4 148 6/18/2026
0.7.2 129 6/18/2026
0.7.1 137 6/18/2026
0.6.6 138 3/11/2026
0.6.5 120 3/4/2026
0.6.4 114 3/4/2026
0.6.3 120 3/3/2026
0.6.2 126 3/2/2026
0.6.1 128 3/2/2026
0.6.0 125 3/1/2026
0.5.7 123 3/1/2026
Loading failed