perl-content-length-framing 0.12.0

Shared Content-Length frame parsing and encoding for LSP and DAP transports
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# perl-content-length-framing

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

## Scope

- Accumulate transport bytes and extract complete `Content-Length` frames
- Encode outbound payload bytes into `Content-Length` framed messages
- Apply resynchronization guardrails for malformed or desynchronized streams

## API

- `ContentLengthFramer::push(bytes)`
- `ContentLengthFramer::try_next()`
- `frame(body)`