Skip to main content

KNOWN_VERSION_SPECIFIC_PARAMETERS

Constant KNOWN_VERSION_SPECIFIC_PARAMETERS 

Source
const KNOWN_VERSION_SPECIFIC_PARAMETERS: &[u64];
Expand description

Every version-specific parameter type draft-15 names, from the registry of Section 13.2, Table 10.

DELIVERY_TIMEOUT (0x02), AUTHORIZATION_TOKEN (0x03), MAX_CACHE_DURATION (0x04), EXPIRES (0x08), LARGEST_OBJECT (0x09), PUBLISHER_PRIORITY (0x0E), FORWARD (0x10), SUBSCRIBER_PRIORITY (0x20), SUBSCRIPTION_FILTER (0x21), GROUP_ORDER (0x22), DYNAMIC_GROUPS (0x30) and NEW_GROUP_REQUEST (0x32). Four times the length of draft-14’s list, because draft-15 is the draft that moved SUBSCRIBE’s and SUBSCRIBE_OK’s fixed fields into parameters.

The list exists for one rule and one direction. Section 9.2: “Receivers MUST allow duplicates of unknown parameters.” A receiver may therefore refuse a repeat only of a type it can name, and a type outside this list belongs to an extension this codec has no business closing a session over. Nothing else reads it — an unknown parameter is still decoded and carried.