def head.of
import cswap-bend-cli@0.1.0.0/http.bend as Httpimport 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))