Skip to content
New issue

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

Support passing arguments and headers without specifying the AMQP type #5

Closed
pma opened this issue Mar 18, 2015 · 0 comments
Closed

Comments

@pma
Copy link
Owner

pma commented Mar 18, 2015

For known arguments in Queue.declare, Exchange.declare and Basic.consume, like "x-message-ttl" the API should accept arguments: ["x-message-ttl": 5000] and convert automatically to arguments: [{"x-message-ttl", :long, 5000}] as expected by the Erlang client.

This can also be applied to headers in Basic.publish, where the most common types (:longstr, :long and :bool) could be inferred from the value.

The format {name, type, value} can still be supported for all other cases.

@peck This would also address #4

mschae pushed a commit to mschae/amqp that referenced this issue Jul 9, 2015
@mschae mschae mentioned this issue Jul 9, 2015
@pma pma closed this as completed in #10 Jul 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant