Table of Contents

Property CaseSensitiveHeaders

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

CaseSensitiveHeaders

Gets or sets whether header names are matched case-sensitively in headers the client creates. (default: false)

public bool CaseSensitiveHeaders { get; init; }

Property Value

bool

Remarks

Applies to received messages and to headers the client creates on your behalf, such as trace context on publish. ADR-4 defines header operations as case-sensitive, but the default is kept case-insensitive here so existing applications are not broken. Headers you construct yourself opt in via NatsHeaders with caseSensitive: true. TODO: next major version should make case-sensitive the default and reverse this option.