def Http.take

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

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

421# Takes the body bytes decoded so far, in order, leaving none behind.
422def Http.take(r: Resp) -> Resp & List<&2, U32>:
423  match r:
424    case Resp{p, h, out}:
425      (Resp{p, h, Nil{}}, List.reverse(&2, U32, out))

Uses (6)

Used by (5)