Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FHIR consumer: support outgoing HTTP headers #458

Open
qligier opened this issue Sep 2, 2024 · 1 comment
Open

FHIR consumer: support outgoing HTTP headers #458

qligier opened this issue Sep 2, 2024 · 1 comment
Assignees
Milestone

Comments

@qligier
Copy link
Contributor

qligier commented Sep 2, 2024

I would like to set HTTP headers in a FHIR response when using a FHIR consumer, e.g. for Trace Context support, by using Constants.HTTP_OUTGOING_HEADERS.

I tried to check the code but could not find a place where Camel's exchange would exist alongside Hapi's HttpServletResponse, to map the headers from one to the other.
Is there any way to do it?

@unixoid
Copy link
Member

unixoid commented Dec 23, 2024

@qligier Please review and test. What I did not manage to implement is the propagation of response HTTP headers into the producer route in case of queries -- see e.g. org.openehealth.ipf.platform.camel.ihe.fhir.chppqm.chppq5.ChPpq5Test#test2. But the headers are there, you can see them when you set logging level of the FHIR logging interceptor to INFO.

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

No branches or pull requests

2 participants