mirror of https://github.com/celery/kombu.git
fix docs about content_type and serialization
if serializer is None and content_type is not specified, then serialization will happen (see messaging.Producer:_prepare)
This commit is contained in:
parent
29c31780c6
commit
a9ccd7624b
|
@ -106,10 +106,10 @@ Sending raw data without Serialization
|
||||||
======================================
|
======================================
|
||||||
|
|
||||||
In some cases, you don't need your message data to be serialized. If you
|
In some cases, you don't need your message data to be serialized. If you
|
||||||
pass in a plain string or Unicode object as your message, then `Kombu` will
|
pass in a plain string or Unicode object as your message and a custom `content_type`, then `Kombu` will
|
||||||
not waste cycles serializing/deserializing the data.
|
not waste cycles serializing/deserializing the data.
|
||||||
|
|
||||||
You can optionally specify a `content_type` and `content_encoding`
|
You can optionally specify a `content_encoding`
|
||||||
for the raw data::
|
for the raw data::
|
||||||
|
|
||||||
>>> with open("~/my_picture.jpg", "rb") as fh:
|
>>> with open("~/my_picture.jpg", "rb") as fh:
|
||||||
|
|
Loading…
Reference in New Issue