def Exec.answer

bend-kube-runtime@0.2.0.0 · src/exec.bend:350

import bend-kube-runtime@0.2.0.0/src/exec.bend as Exec
import Base
import bend-kube-runtime@0.2.0.0/src/http.bend as H
import bend-kube-runtime@0.2.0.0/src/client.bend as Cl

350def Exec.answer(s: Socket, h: Maybe<&2, H.Head>, rest: List<&2, U32>, stdin: Maybe<&2, String>,
351  +k: U32, +ms: U32) -> IO(Result<&2, &2, Cl.KErr, Out>):
352  match h:
353    case Some{H.Head{+code, reason, hs}}:
354      Exec.answer.go(s, code, reason, rest, stdin, k, ms, U32.is_eq(code, 101))
355    case None{}:
356      Exec.close((s, Fail{Cl.KNet{0, "exec: a malformed answer to the upgrade"}}))

Uses (14)

Used by (1)