You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm integrating two microservices written in NodeJS and Java. I have trouble in making both communicate, because Spring AMQP handler expects to receive "application/json" message from Node RPC Handler. As far as I understand it, the content actually is buffered as a JSON message, however, I cannot set the appropriate header for the returned message.
I would like to be able to set the headers (options) while returning a response from RPC Handler as specified in the publish API.
Looking at the source code, I see that the options object is passed as an argument, but I cannot find where to pass my own values:
Here's my method, from which I want to return the message with specified contentType header:
The text was updated successfully, but these errors were encountered:
It isn't really possible to do this today. I'm starting to consider the roadmap for v2.0 which might fix this and a lot of other issues. Please consider sharing some ideas you have for how you would like this feature to work over at #227.
Some ideas that come to mind:
should it be a new function that you add to the decorator?
would you like to return a "special" object from the getUser function which will allow for attaching additional optional options for each response sent over RPC?
Please let me know what you think so that I can properly determine the roadmap
Hi,
I'm integrating two microservices written in NodeJS and Java. I have trouble in making both communicate, because Spring AMQP handler expects to receive "application/json" message from Node RPC Handler. As far as I understand it, the content actually is buffered as a JSON message, however, I cannot set the appropriate header for the returned message.
I would like to be able to set the headers (options) while returning a response from RPC Handler as specified in the publish API.
Looking at the source code, I see that the options object is passed as an argument, but I cannot find where to pass my own values:
Here's my method, from which I want to return the message with specified contentType header:
The text was updated successfully, but these errors were encountered: