def Http.lost

bend-kube-runtime@0.2.0.0 · src/client.bend:291

import bend-kube-runtime@0.2.0.0/src/client.bend as Client
import 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)

Uses (5)

Used by (1)