def Client.json.status.fix

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

import bend-kube-runtime@0.2.0.0/src/client.bend as Client
import Base
import bend-kube-runtime@0.2.0.0/src/core.bend as C

509# A Status without a code (some proxies) takes the HTTP status.
510def Client.json.status.fix(+c: U32, s: C.Status) -> C.Status:
511  match s:
512    case C.Status{+k, r, m}:
513      Client.json.status.fix.go(c, k, r, m, U32.is_eq(k, 0))

Uses (4)

Used by (1)