Cogito.Web.Http
4.0.0
dotnet add package Cogito.Web.Http --version 4.0.0
NuGet\Install-Package Cogito.Web.Http -Version 4.0.0
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="Cogito.Web.Http" Version="4.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cogito.Web.Http" Version="4.0.0" />
<PackageReference Include="Cogito.Web.Http" />
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 Cogito.Web.Http --version 4.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cogito.Web.Http, 4.0.0"
#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 Cogito.Web.Http@4.0.0
#: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=Cogito.Web.Http&version=4.0.0
#tool nuget:?package=Cogito.Web.Http&version=4.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Cogito.Web.Http
Bind ASP.NET Web API action parameters to HTTP headers.
Why
Web API binds from the route, query string and body out of the box, but not from headers — so header
values get read out of Request.Headers inside the action, which keeps them out of the method
signature and out of model validation.
Install
dotnet add package Cogito.Web.Http
Use
public IHttpActionResult Get([FromHeader("X-Correlation-Id")] string correlationId)
{
...
}
FromHeaderAttribute supplies the value provider; HeaderValueProviderFactory is registered for you
and can be replaced through IHeaderValueProviderFactory.
Targets .NET Framework.
License
MIT.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- Cogito.Core (>= 4.0.0)
- Microsoft.AspNet.WebApi.Core (>= 5.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0 | 106 | 10/15/2026 |
| 3.1.37 | 119 | 9/14/2026 |
| 3.1.36 | 898 | 11/30/2020 |
| 3.1.35 | 677 | 11/16/2020 |
| 3.1.34 | 753 | 11/16/2020 |
| 3.1.30 | 845 | 11/15/2020 |
| 3.1.29 | 703 | 11/11/2020 |
| 3.1.27 | 708 | 11/11/2020 |
| 3.1.26 | 706 | 11/11/2020 |
| 3.1.24 | 738 | 11/11/2020 |
| 3.1.23 | 913 | 11/11/2020 |
| 3.1.20 | 874 | 11/11/2020 |
| 3.1.18 | 734 | 8/7/2020 |
| 3.1.16 | 758 | 8/7/2020 |
| 3.1.13 | 913 | 2/25/2020 |
| 3.1.10 | 782 | 2/25/2020 |
| 3.1.8 | 783 | 2/25/2020 |
| 3.1.7 | 856 | 2/25/2020 |
| 3.1.6 | 894 | 2/25/2020 |
| 3.0.11 | 804 | 2/7/2020 |
Loading failed