Franz.Common.Http
1.2.62
See the version list below for details.
dotnet add package Franz.Common.Http --version 1.2.62
NuGet\Install-Package Franz.Common.Http -Version 1.2.62
<PackageReference Include="Franz.Common.Http" Version="1.2.62" />
<PackageVersion Include="Franz.Common.Http" Version="1.2.62" />
<PackageReference Include="Franz.Common.Http" />
paket add Franz.Common.Http --version 1.2.62
#r "nuget: Franz.Common.Http, 1.2.62"
#:package Franz.Common.Http@1.2.62
#addin nuget:?package=Franz.Common.Http&version=1.2.62
#tool nuget:?package=Franz.Common.Http&version=1.2.62
Franz.Common.Http
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: 1.2.62
- 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 --version 1.2.62
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.
- 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.62
- Added
ErrorResponseProviderandExceptionFilterfor centralized error management. - Introduced routing extensions with
FrenchControllerParameterTransformerandTranslateControllerParameterTransformer. - Added
HttpContextExtensionsfor simplified header and context management. - Full compatibility with Franz.Common, Franz.Common.Errors, and Franz.Common.Serialization.
| 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 was computed. 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. |
-
net8.0
- Franz.Common (>= 1.2.62)
- Franz.Common.DependencyInjection (>= 1.2.62)
- Franz.Common.Errors (>= 1.2.62)
- Franz.Common.Serialization (>= 1.2.62)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 8.0.0)
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 |
|---|---|---|
| 1.6.19 | 198 | 10/25/2025 |
| 1.6.15 | 239 | 10/20/2025 |
| 1.6.14 | 243 | 10/15/2025 |
| 1.6.3 | 241 | 10/9/2025 |
| 1.6.2 | 243 | 10/7/2025 |
| 1.5.9 | 224 | 9/24/2025 |
| 1.5.4 | 216 | 9/23/2025 |
| 1.5.3 | 257 | 9/21/2025 |
| 1.5.2 | 255 | 9/21/2025 |
| 1.5.0 | 250 | 9/21/2025 |
| 1.4.4 | 220 | 9/20/2025 |
| 1.3.14 | 336 | 9/18/2025 |
| 1.3.13 | 335 | 9/18/2025 |
| 1.3.5 | 332 | 9/17/2025 |
| 1.3.4 | 331 | 9/16/2025 |
| 1.3.3 | 328 | 9/16/2025 |
| 1.3.2 | 324 | 9/15/2025 |
| 1.3.1 | 134 | 9/12/2025 |
| 1.3.0 | 342 | 8/25/2025 |
| 1.2.65 | 229 | 3/3/2025 |
| 1.2.64 | 166 | 1/29/2025 |
| 1.2.63 | 186 | 1/27/2025 |
| 1.2.62 | 166 | 1/8/2025 |