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
                    
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.Grpc" 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.Grpc" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="DcsvIo.D2.Headers.Grpc" />
                    
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.Grpc --version 0.1.1
                    
#r "nuget: DcsvIo.D2.Headers.Grpc, 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.Grpc@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.Grpc&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=DcsvIo.D2.Headers.Grpc&version=0.1.1
                    
Install as a Cake Tool

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 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

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
0.1.1 111 7/17/2026
0.1.0 115 7/17/2026