Frame.header: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lsp/frame.bend as Frame Lines 312-325 of bolt@1.27.0.0/src/lsp/frame.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/lsp/frame.bend&start_line=312&end_line=325 import Base # the header block read up to its blank line: Content-Length, and the bytes # after; not whole yet when the blank line has not come def header(bs: List<&2, U32>, line: List<&2, U32>, len: List<&2, Digit>) -> Head: match bs line: case Nil{} l: NoHead{} case Con{10, t} Nil{}: Head{len, t} case Con{10, t} l: header(t, [], line_len(l, len)) case Con{13, t} l: header(t, l, len) case Con{c, t} l: header(t, c <> l, len) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/frame.bend&name=Digit https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/frame.bend&name=Head https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/frame.bend&name=line_len