Using NodeJS to "eavesdrop" on Microgateway messages

joh
Fri, 03 Dec 2021 10:08:27 +0000
General Discussions

Hi there,

I have a Microgateway set-up and I’m trying to eavesdrop/ audit messages using NodeJS but I’m encountering some apparent limitations with the API.
How is it possible for me to access HTTP Content-Type, Content-Encoding, Accept-Encoding headers using NodeJS?
It’s common for REST payload to be encoded using gzip, br, etc but I’m not able to tell without having access to those headers.
I note that .NET API doesn’t have this issue as the Message exposes the following properties:message.HttpContentEncoding & message.HttpContentType

Am I missing something in the Javascript API? Thanks!

4 posts - 1 participant