Get.get.reply: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/hub/get.bend as Get Lines 14-21 of ezx@1.11.0.0/src/hub/get.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/hub/get.bend&start_line=14&end_line=21 import Base import emerging-ezhttp@0.14.0.0/src/client.bend as Client import ezx@1.11.0.0/src/hub/hub.bend as Hub # what ezhttp answered. It folds a socket that would not open and a reply that # came apart into one Err, so both are 6. def get.reply(response: Client.Response) -> String: match response: case Client.Err{why}: "6\n" ++ why case Client.Response{+status, _headers, body}: Hub.get.status(U32.is_eq(status, 200), status, body) Uses (5): 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.is_eq https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/client.bend&name=Response https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/hub/hub.bend&name=get.status