crnk-framework icon indicating copy to clipboard operation
crnk-framework copied to clipboard

Not able to inject custom header in response

Open sans30 opened this issue 1 year ago • 0 comments

Hello,

I am using ResourceRepositoryBase class and i have an use case to inject custom header in response. I have tried to implement HttpRequestContextAware interface in my repository class and added below code snippet in findAll() method, but i am not seeing the custom header in response. I couldn't find clear documentation to achieve this functionality.

httpRequestContextProvider.getRequestContext().get response().setHeader("custom-header","custom-values");

Could you please suggest and share some sample..

Thanks in Advance!!

sans30 avatar Dec 22 '22 12:12 sans30