Browse Source

Protocol Documentation: Added information about serialization schemes and the message header used to define them.

Ask Solem 15 years ago
parent
commit
0255c54f0d
1 changed files with 17 additions and 0 deletions
  1. 17 0
      docs/internals/protocol.rst

+ 17 - 0
docs/internals/protocol.rst

@@ -47,3 +47,20 @@ format::
      "kwargs": {},
      "retries": 0,
      "eta": "2009-11-17T12:30:56.527191"}
+
+
+Serialization
+=============
+
+The protocol supports several serialization formats using the
+``content_encoding`` message header.
+
+The MIME-types supported by default are shown in the following table.
+
+    =============== =================================
+         Scheme                 MIME Type
+    =============== =================================
+    json            application/json
+    yaml            application/x-yaml
+    pickle          application/x-python-serialize
+    =============== =================================