![]() |
VOOZH | about |
dotnet add package Franz.Common.Http --version 2.2.7
NuGet\Install-Package Franz.Common.Http -Version 2.2.7
<PackageReference Include="Franz.Common.Http" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Http" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Http" />Project file
paket add Franz.Common.Http --version 2.2.7
#r "nuget: Franz.Common.Http, 2.2.7"
#:package Franz.Common.Http@2.2.7
#addin nuget:?package=Franz.Common.Http&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Http&version=2.2.7Install as a Cake Tool
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.
ErrorResponseProvider and ExceptionFilter for centralized error handling.IErrorResponseProvider.HttpContext and application configuration.FrenchControllerParameterTransformerTranslateControllerParameterTransformer.ServiceCollectionExtensions to streamline dependency injection for HTTP services.-Current Version: v2.2.7
This package relies on:
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
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>();
Use HttpContextExtensions to simplify access to HttpContext data:
using Franz.Common.Http.Extensions;
var userAgent = context.GetHeaderValue("User-Agent");
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));
});
Use ApplicationBuilderExtensions to enhance the middleware pipeline:
using Franz.Common.Http.Extensions;
app.UseCustomErrorHandling(); // Custom extension for error handling
The Franz.Common.Http package integrates seamlessly with:
Ensure these dependencies are installed to fully leverage the library's capabilities.
This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:
This library is licensed under the MIT License. See the LICENSE file for more details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
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. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 159 | 6/7/2026 |
| 2.2.6 | 173 | 6/6/2026 |
| 2.2.5 | 178 | 6/4/2026 |
| 2.2.4 | 160 | 6/3/2026 |
| 2.2.3 | 165 | 6/2/2026 |
| 2.2.2 | 166 | 6/2/2026 |
| 2.2.1 | 169 | 5/24/2026 |
| 2.1.4 | 156 | 4/27/2026 |
| 2.1.3 | 149 | 4/26/2026 |
| 2.1.2 | 158 | 4/26/2026 |
| 2.1.1 | 162 | 4/22/2026 |
| 2.0.2 | 162 | 3/30/2026 |
| 2.0.1 | 174 | 3/29/2026 |
| 1.7.8 | 163 | 3/2/2026 |
| 1.7.7 | 181 | 1/31/2026 |
| 1.7.6 | 173 | 1/22/2026 |
| 1.7.5 | 174 | 1/10/2026 |
| 1.7.4 | 169 | 12/27/2025 |
| 1.7.3 | 269 | 12/22/2025 |
| 1.7.2 | 251 | 12/21/2025 |