def Http.lost
import bend-kube-runtime@0.2.0.0/src/client.bend as Clientimport Base
import bend-kube-runtime@0.2.0.0/src/http.bend as H
291# A failed recv: lost when no byte of a response came, else broken.
292def Http.lost(r: H.Resp, msg: String) -> H.Resp:
293 match r:
294 case H.Resp{H.PHead{Nil{}, t}, h, o}:
295 H.Resp{H.PLost{msg}, h, o}
296 case _:
297 Http.fail(msg)