txamqp-user team mailing list archive
-
txamqp-user team
-
Mailing list archive
-
Message #00053
Re: content_type / content_encoding
Hi Kurt,
what version of the AMQP spec are you using? With 0.8, the fields for
those two properties are "content type" and "content encoding".
Unfortunately, 0.8 and 0.9 are not compatible in this case, as the
latter uses "content-type" and "content-encoding".
In any case, you can set any of the standard properties using this syntax:
content = Content()
content["content type"] = "text/plain"
if you want to set any custom header, you can use this instead:
content = Content()
content.headers["my header"] = "some value"
let me know if this worked for you.
Cheers.
Follow ups
References