~/bend-docscommunity

src/lsp/frame.bend fails

raw source on the hub · import 0xde9bb08f7de298b03207fb5797ede9a5/src/lsp/frame.bend as Frame

lsp/frame: LSP's base protocol, purely: Content-Length: N\r\n\r\n and then N bytes of UTF-8. Framing counts bytes and a read may end inside a char, so the transport reads bytes, cuts on bytes, and only then decodes.

1 import
import Base