Skip to main content

Module binary

Module binary 

Source
Expand description

V1 binary envelope on the existing authenticated exchange route. The first JSON response advertises support; an old client can ignore that header. All integers are big-endian. The 5-byte request/response magic precedes a u8 item count. A request item starts with a u8 method (GET=0, PUT=1), u16 path length and path bytes. A response item starts with its u16 status. Both end in a u8 compact flag (0 or 1), u32 body length and body bytes. Compact bodies use the signed object type implied by the mailbox operation.

Structs§

InvalidExchange
Item
Operation

Constants§

MEDIA_TYPE
STATE_RETIREMENT_HEADER
A binary client that understands the extended /state body requests it explicitly. Earlier binary clients use the same exchange media type.
SUPPORT_HEADER
SUPPORT_VALUE

Functions§

decode_request
decode_response
encode_request
encode_response