Skip to main content

Crate perl_content_length_framing

Crate perl_content_length_framing 

Source
Expand description

Shared Content-Length frame parsing and encoding for JSON-RPC transports.

This crate provides a transport-level framing primitive used by both LSP and DAP components:

Content-Length: <len>\r\n\r\n<raw JSON bytes>

The framer is intentionally payload-agnostic and operates only on bytes.

Structs§

ContentLengthFramer
Stateful extractor for Content-Length framed payloads.

Enums§

FramingError
Framing errors for Content-Length transport parsing.

Constants§

MAX_FRAME_SIZE
Maximum allowed message body size in bytes.

Functions§

frame
Build a full Content-Length framed message from a payload body.