Http.reply.exit: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/http.bend as Http Lines 174-182 of cswap-bend-cli@0.1.0.0/http.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/http.bend&start_line=174&end_line=182 import Base # curl exit 28 is its own timeout; anything else that fails is the network. def reply.exit(ok: Bool, timed_out: Bool, out: String) -> Result<&2, &2, String, Reply>: match ok timed_out: case True{} _: reply.ok(out) case False{} True{}: Fail{"timeout"} case False{} False{}: Fail{"network"} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/http.bend&name=Reply https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/http.bend&name=reply.ok