def Http.end_head.go

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

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

269def Http.end_head.go(h: Maybe<&2, Head>) -> Resp:
270  match h:
271    case Some{+x}:
272      Resp{Http.framing(x), Some{x}, Nil{}}
273    case None{}:
274      Resp{PErr{"bad response head"}, None{}, Nil{}}

Uses (6)

Used by (1)