Expand description
Draft-14 data streams: subgroup streams, fetch streams, datagrams.
Draft-14 carries object data in three wire shapes:
-
Subgroup stream: starts with a Type byte
0x10..=0x1Dwhose bit-flags determine whether a Subgroup ID field is present, whether the subgroup ID is zero or the first Object ID, whether extension headers are present, and whether the stream ends at a group boundary. Object IDs are delta-encoded relative to the previous Object ID in the same stream. -
Fetch stream: Type
0x05, Request ID, then a sequence of self-describing objects until FIN. -
Datagram: Type byte
0x00..=0x07or0x20..=0x21with bit-flags for End of Group, Extensions Present, Object ID Present, and Status vs Payload.
Structs§
- Datagram
Object - Datagram carrying a single object.
- Datagram
Type - Datagram type byte.
- Fetch
Header - Fetch stream header: the type byte
0x05followed by the Request ID. - Fetch
Object - One object carried on a fetch stream.
- Fetch
Object Meta - The framing of one fetch object, without its payload.
- Subgroup
Header - Subgroup stream header.
- Subgroup
Object - One object within a subgroup stream, with the Object ID already resolved from its delta encoding.
- Subgroup
Object Meta - The framing of one subgroup object, without its payload.
- Subgroup
Object Reader - Stateful reader for the object fields on a subgroup stream.
- Subgroup
Stream Type - Subgroup stream type byte.
Enums§
- Payload
Permission - Whether an object carrying a given status may hold a non-empty payload.
Constants§
- FETCH_
STREAM_ TYPE - Draft-14 fetch stream type byte.