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.