~/bend-docscommunity

bolt/lsp/frame.bend fails

raw source on the hub · import 0x729eecea86ea5a2cdba3a2856a313bca/bolt/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