Client.http.answer: def of ezhttp@0.22.0.0 Import: import ezhttp@0.22.0.0/src/client.bend as Client Lines 38-46 of ezhttp@0.22.0.0/src/client.bend: https://jend.leeeet.dev/read.txt?path=ezhttp@0.22.0.0/src/client.bend&start_line=38&end_line=46 import Base import ezhttp@0.22.0.0/src/wire.bend as Wire import ezhttp@0.22.0.0/src/wirespec.bend as Spec import ezhttp@0.22.0.0/src/packed.bend as Packed # an exchange's answer as a client Response, read by the request's method # (packed.bend packed.reply: interim 1xx heads skipped, no body for HEAD, 1xx, # 204 or 304); a failed exchange keeps its reason (wirespec.bend wire.failed) def http.answer(+method: String, a: Wire.Answer) -> Response: match a: case Wire.Failed{answer}: Err{Spec.wire.failed(answer)} case Wire.Received{octets}: from.got(Packed.packed.reply(method, octets)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezhttp@0.22.0.0/src/client.bend&name=Response https://jend.leeeet.dev/definition.txt?path=ezhttp@0.22.0.0/src/client.bend&name=from.got https://jend.leeeet.dev/definition.txt?path=ezhttp@0.22.0.0/src/packed.bend&name=packed.reply https://jend.leeeet.dev/definition.txt?path=ezhttp@0.22.0.0/src/wire.bend&name=Answer https://jend.leeeet.dev/definition.txt?path=ezhttp@0.22.0.0/src/wirespec.bend&name=wire.failed