Skip to main content

JetstreamHeader

Defined in: src/jetstream.constants.ts:212

NATS headers managed by the transport.

These headers are set automatically on outbound messages. Some are reserved (RESERVED_HEADERS) and cannot be overwritten via JetstreamRecordBuilder.setHeader().

Enumeration Members

CallerName

CallerName: "x-caller-name"

Defined in: src/jetstream.constants.ts:220

Internal name of the service that sent the message.


CorrelationId

CorrelationId: "x-correlation-id"

Defined in: src/jetstream.constants.ts:214

Unique ID linking an RPC request to its response.


Error

Error: "x-error"

Defined in: src/jetstream.constants.ts:222

Set to 'true' on error responses so the client can distinguish success from failure.


ReplyTo

ReplyTo: "x-reply-to"

Defined in: src/jetstream.constants.ts:216

Inbox subject where the RPC response should be published.


Subject

Subject: "x-subject"

Defined in: src/jetstream.constants.ts:218

Original subject the message was published to.