def Http.framing

bend-kube-runtime@0.2.0.0 · src/http.bend:241

import bend-kube-runtime@0.2.0.0/src/http.bend as Http
import Base

241# The body's framing, once the head is read: chunked, a length, or none
242# (204, 304 and 1xx carry no body).
243def Http.framing(+h: Head) -> Phase:
244  match h:
245    case Head{+code, r, hs}:
246      Http.framing.go(code, Http.find(hs, "transfer-encoding"), Http.find(hs, "content-length"))

Uses (4)

Used by (1)