Skip to main content

JetstreamHeader

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

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

Internal name of the service that sent the message.


CorrelationId

CorrelationId: "x-correlation-id"

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

Unique ID linking an RPC request to its response.


Error

Error: "x-error"

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

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

Inbox subject where the RPC response should be published.


Subject

Subject: "x-subject"

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

Original subject the message was published to.