def wrap

bolt@1.27.0.0 · src/lsp/frame.bend:284

import bolt@1.27.0.0/src/lsp/frame.bend as Frame
import Base

284# a message on its way out
285def wrap(+body: String) -> String:
286  "Content-Length: " ++ count.show(byte_count(String.to_list(body), [D0{}]), "") ++ "\r\n\r\n" ++ body

Uses (7)

Used by (1)