DcsvIo.D2.Headers.Http 0.1.1

dotnet add package DcsvIo.D2.Headers.Http --version 0.1.1
                    
NuGet\Install-Package DcsvIo.D2.Headers.Http -Version 0.1.1
                    
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="DcsvIo.D2.Headers.Http" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DcsvIo.D2.Headers.Http" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="DcsvIo.D2.Headers.Http" />
                    
Project file
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 DcsvIo.D2.Headers.Http --version 0.1.1
                    
#r "nuget: DcsvIo.D2.Headers.Http, 0.1.1"
                    
#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 DcsvIo.D2.Headers.Http@0.1.1
                    
#: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=DcsvIo.D2.Headers.Http&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=DcsvIo.D2.Headers.Http&version=0.1.1
                    
Install as a Cake Tool

DcsvIo.D2.Headers.Http

D2 wire-protocol headers for the HTTP transport. Includes HTTP-only entries (Authorization, Idempotency-Key, X-D2-Client-Fingerprint, X-D2-Internal-Token) and cross-transport entries (x-d2-context, traceparent, tracestate) at identical wire values. Codegen-emitted from the headers contract spec via DcsvIo.D2.Headers.SourceGen (filtered with applicability.Contains("http")). Mirrors the TypeScript package @dcsv-io/d2-headers-http at byte-equal wire values; parity is asserted by shared contract tests.

Install

dotnet add package DcsvIo.D2.Headers.Http

Public API

Member Type Purpose
HttpHeaders.AUTHORIZATION const string "Authorization" RFC 6750 bearer token header
HttpHeaders.CLIENT_FINGERPRINT const string "X-D2-Client-Fingerprint" Client-computed device fingerprint
HttpHeaders.IDEMPOTENCY_KEY const string "Idempotency-Key" Stripe-style request-deduplication key
HttpHeaders.INTERNAL_TOKEN const string "X-D2-Internal-Token" Boundary-acquired internal token (host hop)
HttpHeaders.PROPAGATED_CONTEXT const string "x-d2-context" Base64url-of-JSON propagated context envelope (cross-transport)
HttpHeaders.TRACEPARENT const string "traceparent" W3C Trace Context (cross-transport)
HttpHeaders.TRACESTATE const string "tracestate" W3C tracestate (cross-transport)
HttpHeaders.AllHttpHeaders IReadOnlyList<string> All wire values in constName order

When to reach for this catalog

Use DcsvIo.D2.Headers.Http from any HTTP-context consumer — host JWT middleware, outbound token-exchange clients, ASP.NET CORS configuration, idempotency middleware. The catalog includes both the HTTP-only entries and the cross-transport entries that an HTTP pipeline can encounter; one using covers everything.

Spec contract

The headers contract spec is the single source of truth. Every entry whose applicability array contains "http" lives in this catalog. Cross-transport entries also live in DcsvIo.D2.Headers.Common and every other transport catalog they apply to, all at identical wire values (codegen-guaranteed and verified by header catalog consistency tests).

Dependencies

  • DcsvIo.D2.Headers.SourceGen (build-time analyzer)

No runtime dependencies — pure constants.

Sister packages: DcsvIo.D2.Headers.Common, DcsvIo.D2.Headers.Amqp, DcsvIo.D2.Headers.Grpc.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on DcsvIo.D2.Headers.Http:

Package Downloads
DcsvIo.D2.AspNetCore

Cross-cutting ASP.NET Core middleware and endpoint primitives for D2 service composition roots (security headers, CORS, health endpoints, ProblemDetails, mTLS, infrastructure-path matching).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 124 7/17/2026
0.1.0 129 7/17/2026