After this patch, user may pass packer_factory and unpacker_factory options to a connection. They will be used instead of the default ones. packer_factory is expected to be a function with the only one parameter: connection object, which returns a new msgpack.Packer object. unpacker_factory is expected to be a function with the only one parameter: connection object, which returns a new msgpack.Unpacker object. packer_factory supersedes encoding option. unpacker_factory supersedes encoding and use_list options. User may implement encoding and use_list support in its custom packer or unpacker if they wish so. User may refer to request submodule packer_factory and response submodule unpacker_factory as an example (these factories are used by default.)
After this patch, user may pass
packer_factory
andunpacker_factory
options to a connection. They will be used instead of the default ones.packer_factory
is expected to be a function with the only one parameter: connection object, which returns a new msgpack.Packer object.unpacker_factory
is expected to be a function with the only one parameter: connection object, which returns a new msgpack.Unpacker object.packer_factory
supersedesencoding
option.unpacker_factory
supersedesencoding
anduse_list
options. User may implementencoding
anduse_list
support in its custom packer or unpacker if they wish so. User may refer to request submodulepacker_factory
and response submoduleunpacker_factory
as an example (these factories are used by default.)Closes #154, #190, #191