##// END OF EJS Templates
wireproto: add frame flag to denote payloads as CBOR...
Gregory Szorc -
r37315:e9aadee6 default
parent child Browse files
Show More
@@ -631,19 +631,21 b' 0x02'
631 631 server. The command has been fully issued and no new data for this
632 632 command will be sent. The next frame will belong to a new command.
633 633
634 Bytes Response Data (``0x04``)
635 ------------------------------
634 Response Data (``0x04``)
635 ------------------------
636 636
637 This frame contains raw bytes response data to an issued command.
637 This frame contains raw response data to an issued command.
638 638
639 639 The following flag values are defined for this type:
640 640
641 641 0x01
642 Data continuation. When set, an additional frame containing raw
643 response data will follow.
642 Data continuation. When set, an additional frame containing response data
643 will follow.
644 644 0x02
645 End of data. When sent, the response data has been fully sent and
645 End of data. When set, the response data has been fully sent and
646 646 no additional frames for this response will be sent.
647 0x04
648 CBOR data. When set, the frame payload consists of CBOR data.
647 649
648 650 The ``0x01`` flag is mutually exclusive with the ``0x02`` flag.
649 651
@@ -79,10 +79,12 b' FLAGS_COMMAND_DATA = {'
79 79
80 80 FLAG_BYTES_RESPONSE_CONTINUATION = 0x01
81 81 FLAG_BYTES_RESPONSE_EOS = 0x02
82 FLAG_BYTES_RESPONSE_CBOR = 0x04
82 83
83 84 FLAGS_BYTES_RESPONSE = {
84 85 b'continuation': FLAG_BYTES_RESPONSE_CONTINUATION,
85 86 b'eos': FLAG_BYTES_RESPONSE_EOS,
87 b'cbor': FLAG_BYTES_RESPONSE_CBOR,
86 88 }
87 89
88 90 FLAG_ERROR_RESPONSE_PROTOCOL = 0x01
General Comments 0
You need to be logged in to leave comments. Login now