Hub.get.status: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/hub/hub.bend as Hub Lines 11-17 of ezx@1.11.0.0/src/hub/hub.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/hub/hub.bend&start_line=11&end_line=17 import Base # a status other than 200 is a miss with the number in it, never a body def get.status(ok: Bool, status: U32, body: String) -> String: match ok: case True{}: "0\n" ++ body case False{}: "22\nthe server answered " ++ U32.show(status) 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=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.show