Expand description
Fully compliant LSP Base 0.9 JSON-RPC message envelope handling, HTTP-style header parsing, and boundary checks.
Enums§
- Parse
Error - Errors that can occur when processing an LSP message.
Constants§
- MAX_
CONTENT_ LENGTH - Maximum allowed value for the
Content-Lengthheader (50 MB). - MAX_
HEADERS_ SIZE - Maximum allowed buffer size for HTTP headers before terminating with
\r\n\r\n(8 KB).
Functions§
- decode_
message - Decodes an LSP message from the input buffer.
- encode_
message - Encodes a message into the output buffer with Content-Length header.
- validate_
envelope - Validates a raw JSON value as a conforming JSON-RPC 2.0 envelope.