~/bend-docscommunity

src/lsp/frame.bend fails

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