![]() |
VOOZH | about |
dotnet add package Franz.Common.Http.Headers --version 2.2.7
NuGet\Install-Package Franz.Common.Http.Headers -Version 2.2.7
<PackageReference Include="Franz.Common.Http.Headers" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Http.Headers" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Http.Headers" />Project file
paket add Franz.Common.Http.Headers --version 2.2.7
#r "nuget: Franz.Common.Http.Headers, 2.2.7"
#:package Franz.Common.Http.Headers@2.2.7
#addin nuget:?package=Franz.Common.Http.Headers&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Http.Headers&version=2.2.7Install as a Cake Tool
A library within the Franz Framework designed to streamline the management, validation, and processing of HTTP headers in ASP.NET Core applications. This package provides custom model binders, attributes, and utilities for working with headers, ensuring consistency and efficiency across applications.
HeaderRequiredAttribute for enforcing required headers on API actions.HeaderRequiredActionConstraint for conditional routing based on headers.ComplexModelBinder and HeaderComplexModelBinderProvider for advanced header parsing and mapping.HeaderContextAccessor for simplified access to HTTP header data.ServiceCollectionExtensions for easily integrating header-related 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.Headers
Use HeaderRequiredAttribute to enforce the presence of specific headers:
using Franz.Common.Http.Headers.Extensions;
[HttpGet]
[HeaderRequired("X-Custom-Header")]
public IActionResult Get()
{
return Ok("Header is present");
}
Leverage ComplexModelBinder to parse and bind headers to complex objects:
using Franz.Common.Http.Headers.Extensions;
public class CustomHeaderModel
{
public string Key { get; set; }
public string Value { get; set; }
}
[HttpPost]
public IActionResult Post([ModelBinder(typeof(ComplexModelBinder))] CustomHeaderModel headerModel)
{
return Ok(headerModel);
}
Simplify access to header data using HeaderContextAccessor:
using Franz.Common.Http.Headers.Extensions;
var customHeader = contextAccessor.GetHeaderValue("X-Custom-Header");
Use ServiceCollectionExtensions to register all header-related utilities:
using Franz.Common.Http.Headers.Extensions;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddHeaderUtilities(); // Registers header-related services and utilities
}
}
The Franz.Common.Http.Headers 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 2 NuGet packages that depend on Franz.Common.Http.Headers:
| Package | Downloads |
|---|---|
|
Franz.Common.Http.MultiTenancy
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 | 142 | 6/7/2026 |
| 2.2.6 | 155 | 6/6/2026 |
| 2.2.5 | 154 | 6/4/2026 |
| 2.2.4 | 140 | 6/3/2026 |
| 2.2.3 | 141 | 6/2/2026 |
| 2.2.2 | 144 | 6/2/2026 |
| 2.2.1 | 148 | 5/24/2026 |
| 2.1.4 | 145 | 4/27/2026 |
| 2.1.3 | 136 | 4/26/2026 |
| 2.1.2 | 138 | 4/26/2026 |
| 2.1.1 | 145 | 4/22/2026 |
| 2.0.2 | 151 | 3/30/2026 |
| 2.0.1 | 154 | 3/29/2026 |
| 1.7.8 | 152 | 3/2/2026 |
| 1.7.7 | 163 | 1/31/2026 |
| 1.7.6 | 154 | 1/22/2026 |
| 1.7.5 | 161 | 1/10/2026 |
| 1.7.4 | 161 | 12/27/2025 |
| 1.7.3 | 239 | 12/22/2025 |
| 1.7.2 | 253 | 12/21/2025 |