def head.list

emerging-ezhttp@0.21.0.0 · src/http.bend:460

import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import Base

460# header lines after the status line as a list of fields
461def head.list(ls: List<&2, String>) -> List<&2, Header>:
462  match ls:
463    case []:
464      []
465    case h <> t:
466      head.cons(head.line(h), head.list(t))

Uses (5)

Used by (4)