Expand description
STOMP 1.2 frames. Text commands and headers; opaque body bytes.
A frame is COMMAND\nheaders\n\nbody\0. Headers may be LF or CRLF.
Leading \n, \r, and NUL are heartbeats and are discarded.
Structsยง
- One STOMP frame (command + headers + body).
Enumsยง
- Why a frame could not be decoded, or why a write failed.
Constantsยง
- Largest single frame (header block plus body) accepted from a peer.
Functionsยง
- Pulls one complete frame from
buf, rejecting frames larger thanDEFAULT_MAX_FRAME_SIZE. - Pulls one complete frame from
buf. - escape_
header ๐STOMP 1.2 header escapes:\\,\\c(:),\\n,\\r. - find_
header_ ๐end Byte offset after the blank line that ends the header block (\n\nor\r\n\r\n). - unescape_
header ๐Inverse ofescape_header.