nestjs icon indicating copy to clipboard operation
nestjs copied to clipboard

RabbitMQ: pass message headers to amqpConnection.request()

Open fabricemathis opened this issue 5 years ago • 3 comments

I'm surprised that it is possible to pass message headers through amqpConnection.publish, with the help of the options parameter, but not through amqpConnection.request.

Is it something that was specifically avoided, or is it just that there was no particular demand for this ?

fabricemathis avatar Feb 03 '21 17:02 fabricemathis

No particular reason, just a lack of demand. This will be addressed as part of the roadmap for v2

WonderPanda avatar Feb 04 '21 18:02 WonderPanda

Good news ! Thanks for your answer ! 😃

fabricemathis avatar Feb 05 '21 11:02 fabricemathis

any news on this? on the 0.1.5 the request function type accepts as third argument requestHeaders?: Dom.RequestInit['headers'] but it not works or I pass it wrong? like {param: 'param'}

leanpilar avatar Jul 25 '21 12:07 leanpilar