def wire.why

emerging-ezhttp@0.21.0.0 · src/wirespec.bend:61

import emerging-ezhttp@0.21.0.0/src/wirespec.bend as Wirespec
import Base

61# a failed exchange's status and reason as the reason the client reports
62def wire.why(code: Maybe<&2, U32>, why: String) -> String:
63  match code:
64    case None{}:
65      why
66    case Some{n}:
67      wire.why.of(why, U32.is_eq(n, wire.late()))

Uses (6)

Used by (1)