Http.Http.eof: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/http.bend as Http Lines 427-441 of bend-kube-runtime@0.2.0.0/src/http.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/http.bend&start_line=427&end_line=441 import Base # The stream ended: a read-until-close body is then complete. def Http.eof(r: Resp) -> Resp: match r: case Resp{PClose{}, h, out}: Resp{PDone{}, h, out} case Resp{PDone{}, h, out}: Resp{PDone{}, h, out} case Resp{PErr{m}, h, out}: Resp{PErr{m}, h, out} case Resp{PLost{m}, h, out}: Resp{PLost{m}, h, out} case Resp{PHead{Nil{}, t}, h, out}: Resp{PLost{"connection closed before a response"}, h, out} case Resp{p, h, out}: Resp{PErr{"connection closed mid-response"}, h, out} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/http.bend&name=Phase https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/http.bend&name=Resp