def packed.final
import emerging-ezhttp@0.21.0.0/src/packed.bend as Packedimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
import emerging-ezhttp@0.21.0.0/src/http.bend as Http
153# the final head's plan carried out on the octets after it
154def packed.final(p: Http.Plan, reason: String, b: Bytes.Bytes, +q: U32,
155 +len: U32) -> Got:
156 match p:
157 case Http.Unplanned{why}:
158 Torn{why}
159 case Http.Planned{st, hs, f}:
160 packed.body(st, hs, reason, f, b, q, len)