Skip to main content

Module headers

Module headers 

Source
Expand description

Braid protocol header names.

Use these constants when setting or reading Braid-specific headers. These are typed axum::http::HeaderName constants for zero-copy usage.

§Example

use crate::protocol::constants::headers;

assert_eq!(headers::VERSION, "version");
assert_eq!(headers::SUBSCRIBE, "subscribe");

Constants§

CONTENT_LENGTH
Content-Length header - body length.
CONTENT_RANGE
Content-Range header - range specification for patches.
CONTENT_TYPE
Content-Type header - body media type.
CURRENT_VERSION
Current-Version header - latest version for catch-up signaling.
HEARTBEATS
Heartbeats header - keep-alive interval for subscriptions.
MERGE_TYPE
Merge-Type header - conflict resolution strategy.
MULTIPLEX_THROUGH
Multiplex-Through header - path for multiplexing.
MULTIPLEX_VERSION
Multiplex-Version header - version of the multiplexing protocol.
PARENTS
Parents header - identifies parent version(s) in the DAG.
PATCHES
Patches header - number of patches in multi-patch format.
PEER
Peer header - identifies the client peer.
RETRY_AFTER
Retry-After header - suggested retry delay.
SUBSCRIBE
Subscribe header - requests subscription mode.
VERSION
Version header - identifies the version of the resource.