def head.bare

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

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

1400# a head that has no body: its status and fields (RFC 9110 §6.4.1)
1401def head.bare(m: Maybe<&2, U32>, ls: List<&2, String>) -> Plan:
1402  match m:
1403    case None{}:
1404      Unplanned{"the response has no status line"}
1405    case Some{n}:
1406      Planned{n, head.list(ls), Bare{}}

Uses (7)

Used by (1)