We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I am struggling to send in a header a custom field with value: true or false. Is there a support for simple boolean values?
Here is what I am trying:
AMQP::MetaData metadata; AMQP::Table table; table.set("compressed", false); table.set("encrypted", true); metadata.setHeaders(table);
I see that the message with these custom fields has been send properly, but I couldn't find a way to get back these fields:
.onReceived([&channel, queue_name, this](const AMQP::Message &message, uint64_t deliveryTag, bool redelivered) { message.headers().get("compressed").isBoolean(); // Returns true message.headers().get("encrypted").isBoolean(); // Returns true auto a = message.headers().get("encrypted").operator int8_t(); // Returns 0 should return 1 auto b = message.headers().get("compressed").operator int8_t(); // Returns 0 channel.ack(deliveryTag); })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I am struggling to send in a header a custom field with value: true or false. Is there a support for simple boolean values?
Here is what I am trying:
I see that the message with these custom fields has been send properly, but I couldn't find a way to get back these fields:
The text was updated successfully, but these errors were encountered: