DcsvIo.D2.Headers.Grpc
0.1.1
dotnet add package DcsvIo.D2.Headers.Grpc --version 0.1.1
NuGet\Install-Package DcsvIo.D2.Headers.Grpc -Version 0.1.1
<PackageReference Include="DcsvIo.D2.Headers.Grpc" Version="0.1.1" />
<PackageVersion Include="DcsvIo.D2.Headers.Grpc" Version="0.1.1" />
<PackageReference Include="DcsvIo.D2.Headers.Grpc" />
paket add DcsvIo.D2.Headers.Grpc --version 0.1.1
#r "nuget: DcsvIo.D2.Headers.Grpc, 0.1.1"
#:package DcsvIo.D2.Headers.Grpc@0.1.1
#addin nuget:?package=DcsvIo.D2.Headers.Grpc&version=0.1.1
#tool nuget:?package=DcsvIo.D2.Headers.Grpc&version=0.1.1
DcsvIo.D2.Headers.Grpc
D2 wire-protocol headers for the gRPC transport. Today the catalog holds the gRPC-applicable subset of cross-transport entries (Authorization, 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("grpc")). Mirrors the TypeScript package @dcsv-io/d2-headers-grpc at byte-equal wire values; parity is asserted by shared contract tests.
Install
dotnet add package DcsvIo.D2.Headers.Grpc
Public API
| Member | Type | Purpose |
|---|---|---|
GrpcHeaders.AUTHORIZATION |
const string "Authorization" |
RFC 6750 bearer token header |
GrpcHeaders.PROPAGATED_CONTEXT |
const string "x-d2-context" |
Base64url-of-JSON propagated context envelope (cross-transport) |
GrpcHeaders.TRACEPARENT |
const string "traceparent" |
W3C Trace Context (cross-transport) |
GrpcHeaders.TRACESTATE |
const string "tracestate" |
W3C tracestate (cross-transport) |
GrpcHeaders.AllGrpcHeaders |
IReadOnlyList<string> |
All wire values in constName order |
Notes on gRPC framework constants
gRPC framework constants like grpc-encoding, grpc-status, grpc-message, grpc-timeout come from Grpc.Core.Metadata and are NOT part of the headers contract spec. This catalog covers only D2-defined headers and the cross-transport ones that flow through gRPC alongside framework headers.
When to reach for this catalog
Use DcsvIo.D2.Headers.Grpc from any gRPC-context consumer — gRPC interceptors and host-supplied outbound client wrappers. On a cross-process hop the gRPC client typically forwards a once-minted internal transaction-token unchanged in the Authorization header over mTLS, which establishes workload identity; the prior client_credentials service-identity layer is superseded by that mTLS workload identity. The catalog values are identical to the corresponding entries in DcsvIo.D2.Headers.Common / DcsvIo.D2.Headers.Http (codegen-guaranteed and verified by header catalog consistency tests).
Spec contract
The headers contract spec is the single source of truth. Every entry whose applicability array contains "grpc" lives in this catalog.
Dependencies
DcsvIo.D2.Headers.SourceGen(build-time analyzer)
No runtime dependencies — pure constants.
Sister packages: DcsvIo.D2.Headers.Common, DcsvIo.D2.Headers.Http, DcsvIo.D2.Headers.Amqp.
| Product | Versions 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. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.