PlainPacker class
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Plain packer just serializes bytes to JSON and adds media type
PlainPacker implements IPacker interface
Signature:
export declare class PlainPacker implements IPacker
Implements: IPacker
Methods
Method | Modifiers | Description |
---|---|---|
mediaType() | returns media type for plain message | |
pack(payload, _params) | Pack returns packed message to transport envelope | |
unpack(envelope) | Unpack returns unpacked message from transport envelope |