Skip to content

Add option to propagate headers from the incoming message to the outgoing message#2446

Merged
jeremydmiller merged 2 commits into
JasperFx:mainfrom
lyall-sc:feature/propagate-incoming-headers
Apr 8, 2026
Merged

Add option to propagate headers from the incoming message to the outgoing message#2446
jeremydmiller merged 2 commits into
JasperFx:mainfrom
lyall-sc:feature/propagate-incoming-headers

Conversation

@lyall-sc

@lyall-sc lyall-sc commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

This option allows the user to specify a collection of headers which will be copied from the incoming message to any outgoing message in a handler. The headers must first exist on the incoming envelope by adding a custom IEnvelopeMapper which copies them from the transport to the Envelope, because Wolverine does not process custom headers by default.

lyall-sc and others added 2 commits April 7, 2026 15:54
Adds a PropagateHeadersRule and exposes it via
IPolicies.PropagateIncomingHeadersToOutgoing, allowing named headers from
an incoming message to be automatically forwarded to all outgoing messages
cascaded within the same handler context. Headers not present on the
incoming envelope are silently skipped.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jeremydmiller jeremydmiller merged commit 3c15583 into JasperFx:main Apr 8, 2026
17 of 19 checks passed
@lyall-sc lyall-sc deleted the feature/propagate-incoming-headers branch April 10, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants