MessagePack
The spyne.protocol.msgpack module contains implementations for protocols
that use MessagePack as serializer.
Initially released in 2.8.0-rc.
This module is EXPERIMENTAL. You may not recognize the code here next time you
look at it.
-
class spyne.protocol.msgpack.MessagePackDocument(app=None, validator=None, mime_type=None, ignore_uncap=False, ignore_wrappers=True, complex_as=<type 'dict'>, ordered=False)[source]
Bases: spyne.protocol.dictdoc.HierDictDocument
An integration class for the msgpack protocol.
-
create_in_document(ctx, in_string_encoding=None)[source]
Sets ctx.in_document, using ctx.in_string.
Parameters: |
- ctx – The MethodContext object
- in_string_encoding – MessagePack is a binary protocol. So this
argument is ignored.
|
-
class spyne.protocol.msgpack.MessagePackRpc(app=None, validator=None, mime_type=None, ignore_uncap=False, ignore_wrappers=True, complex_as=<type 'dict'>, ordered=False)[source]
Bases: spyne.protocol.msgpack.MessagePackDocument
An integration class for the msgpack-rpc protocol.
-
create_in_document(ctx, in_string_encoding=None)[source]
Sets ctx.in_document, using ctx.in_string.
Parameters: |
- ctx – The MethodContext object
- in_string_encoding – MessagePack is a binary protocol. So this
argument is ignored.
|