def head.final

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

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

1417# a final head's plan: no body for a reply to HEAD or a 1xx, 204 or 304 status
1418# (RFC 9110 §6.4.1, §9.3.2), else as head.plan frames it
1419def head.final(asked: Bool, +ls: List<&2, String>) -> Plan:
1420  +m = status.of(ls)
1421  head.final.of(Bool.or(asked, status.empty(m)), m, ls)

Uses (8)

Used by (1)