def head.of

cswap-bend-cli@0.1.0.0 · http.bend:163

import cswap-bend-cli@0.1.0.0/http.bend as Http
import Base

163# The header lines: everything before the first blank line.
164def head.of(ls: List<&2, String>) -> String:
165  match ls:
166    case Nil{}:
167      ""
168    case Con{+h, t}:
169      head.pick(String.is_empty(String.trim(h)), h, head.of(t))

Uses (5)

Used by (1)