Franz.Common.Http
2.3.1
See the version list below for details.
dotnet add package Franz.Common.Http --version 2.3.1
NuGet\Install-Package Franz.Common.Http -Version 2.3.1
<PackageReference Include="Franz.Common.Http" Version="2.3.1" />
<PackageVersion Include="Franz.Common.Http" Version="2.3.1" />
<PackageReference Include="Franz.Common.Http" />
paket add Franz.Common.Http --version 2.3.1
#r "nuget: Franz.Common.Http, 2.3.1"
#:package Franz.Common.Http@2.3.1
#addin nuget:?package=Franz.Common.Http&version=2.3.1
#tool nuget:?package=Franz.Common.Http&version=2.3.1
Franz.Common.Http
HTTP, identity, and service integration for the Franz.Common framework on .NET 10.
Overview
The Franz.Common.Http package provides HTTP, identity, and service integration within Franz.Common. It is designed to compose with the rest of the framework rather than imposing unrelated infrastructure choices on every application.
Installation
dotnet add package Franz.Common.Http
Design principles
- Explicit composition: register only the capabilities the application needs.
- Clear boundaries: keep domain and application contracts independent from provider-specific infrastructure where the package's role permits it.
- Predictable behavior: make configuration, failure modes, and lifecycle ownership visible rather than relying on hidden conventions.
- Operational readiness: validate security, resilience, diagnostics, and compatibility for the actual deployment environment.
Usage and configuration
Follow the package-specific setup, configuration, and code examples below. Only configure external services when this package requires them, and keep secrets outside source control.
Package-specific guide
A library within the Franz Framework designed to simplify HTTP-related operations, enhance exception handling, and streamline routing and serialization in ASP.NET Core applications. This package provides robust tools for managing errors, configuring application pipelines, and extending routing capabilities.
Features
- Error Management:
ErrorResponseProviderandExceptionFilterfor centralized error handling.- Customizable error response strategies with
IErrorResponseProvider.
- HTTP Context Extensions:
- Utilities for working with
HttpContextand application configuration.
- Utilities for working with
- Routing Extensions:
- Parameter transformers for localized or custom routing:
FrenchControllerParameterTransformerTranslateControllerParameterTransformer.
- Parameter transformers for localized or custom routing:
- Service Registration:
ServiceCollectionExtensionsto streamline dependency injection for HTTP services.
- Compatibility:
- Seamlessly integrates with Franz.Common, Franz.Common.DependencyInjection, Franz.Common.Errors, and Franz.Common.Serialization.
Version Information
Current Version: v2.3.0
- Part of the private Franz Framework ecosystem.
Dependencies
This package relies on:
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (8.0.0): Enables advanced JSON serialization and deserialization.
- Franz.Common: Core utilities for the framework.
- Franz.Common.DependencyInjection: Simplifies dependency injection.
- Franz.Common.Errors: Standardized error handling.
- Franz.Common.Serialization: Custom serialization utilities.
Installation
From Private Azure Feed
Since this package is hosted privately, configure your NuGet client:
dotnet nuget add source "https://your-private-feed-url" \
--name "AzurePrivateFeed" \
--username "YourAzureUsername" \
--password "YourAzurePassword" \
--store-password-in-clear-text
Install the package:
dotnet add package Franz.Common.Http
Usage
1. Centralized Error Handling
Register the ErrorResponseProvider and ExceptionFilter to handle errors consistently:
using Franz.Common.Http.Errors;
services.AddControllers(options =>
{
options.Filters.Add<ExceptionFilter>(); // Register the exception filter
});
services.AddSingleton<IErrorResponseProvider, ErrorResponseProvider>();
2. HTTP Context Extensions
Use HttpContextExtensions to simplify access to HttpContext data:
using Franz.Common.Http.Extensions;
var userAgent = context.GetHeaderValue("User-Agent");
3. Routing Parameter Transformers
Implement custom routing logic with parameter transformers:
using Franz.Common.Http.Routing;
public class CustomRouting : FrenchControllerParameterTransformer
{
public override string TransformOutbound(object value)
{
return base.TransformOutbound(value)?.ToUpperInvariant(); // Custom transformation logic
}
}
Register the transformer in your Startup.cs:
services.AddRouting(options =>
{
options.ConstraintMap.Add("custom", typeof(CustomRouting));
});
4. Application Pipeline Configuration
Use ApplicationBuilderExtensions to enhance the middleware pipeline:
using Franz.Common.Http.Extensions;
app.UseCustomErrorHandling(); // Custom extension for error handling
Integration with Franz Framework
The Franz.Common.Http package integrates seamlessly with:
- Franz.Common.Errors: For centralized error handling.
- Franz.Common.DependencyInjection: Simplifies DI setup for HTTP services.
- Franz.Common.Serialization: Enhances JSON serialization and deserialization.
- Franz.Common: Provides foundational utilities.
Ensure these dependencies are installed to fully leverage the library's capabilities.
Contributing
This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:
- Clone the repository. @ https://github.com/bestacio89/Franz.Common/
- Create a feature branch.
- Submit a pull request for review.
License
This library is licensed under the MIT License. See the LICENSE file for more details.
Changelog
Version 1.2.65
- Upgrade version to .net 9
Version 1.3
- Upgraded to .NET 9.0.8
- Added new features and improvements
- Separated business concepts from mediator concepts
- Now compatible with both the in-house mediator and MediatR
Version 1.3.6
- Compatible with Franz 1.3.6 stack.
- Self-contained middleware bootstrap (UseHttpArchitecture).
- Swagger & pipeline setup hidden behind Franz extensions.
Version 1.6.20
- Updated to .NET 10.0
v2.0.1 – Internal Modernization
- Messaging and infrastructure refactored for async, thread-safety, and modern .NET 10 patterns.
- All APIs remain fully backward compatible.
- Tests, listeners, and pipeline components modernized.
Dependency maintenance — October 2026
This project's dependency references were reviewed and updated as part of the repository-wide .NET 10 maintenance pass. The intended target framework and public API remain unchanged. Verify the resolved direct and transitive dependency graph through the repository's dependency validation workflow before publishing. See the central dependency upgrade record.
| 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
- Franz.Common (>= 2.3.1)
- Franz.Common.DependencyInjection (>= 2.3.1)
- Franz.Common.Errors (>= 2.3.1)
- Franz.Common.Serialization (>= 2.3.1)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 10.0.14)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Franz.Common.Http:
| Package | Downloads |
|---|---|
|
Franz.Common.Http.MultiTenancy
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Http.Identity
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Http.Bootstrap
Shared utility library for the Franz Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.3.3 | 184 | 10/28/2026 |
| 2.3.2 | 116 | 10/27/2026 |
| 2.3.1 | 204 | 10/26/2026 |
| 2.3.0 | 284 | 7/21/2026 |
| 2.2.19 | 198 | 7/19/2026 |
| 2.2.18 | 200 | 7/19/2026 |
| 2.2.17 | 304 | 7/12/2026 |
| 2.2.16 | 209 | 7/2/2026 |
| 2.2.15 | 201 | 6/29/2026 |
| 2.2.14 | 206 | 6/29/2026 |
| 2.2.13 | 208 | 6/29/2026 |
| 2.2.12 | 198 | 6/28/2026 |
| 2.2.11 | 207 | 6/28/2026 |
| 2.2.10 | 207 | 6/28/2026 |
| 2.2.9 | 201 | 6/28/2026 |
| 2.2.8 | 197 | 6/28/2026 |
| 2.2.7 | 197 | 6/7/2026 |
| 2.2.6 | 208 | 6/6/2026 |
| 2.2.5 | 210 | 6/4/2026 |
| 2.2.4 | 198 | 6/3/2026 |