Client.http.send: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/client.bend as Client Lines 48-57 of emerging-ezhttp@0.21.0.0/src/client.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/client.bend&start_line=48&end_line=57 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes import emerging-ezhttp@0.21.0.0/src/wire.bend as Wire import emerging-ezhttp@0.21.0.0/src/wirespec.bend as Spec # an exchange as wirespec.bend wrote it, with the body's octets after it: # sent and read by its own method, or the URL's reason def http.send(ex: Spec.Exchange, tail: Bytes.Bytes) -> IO(Response): match ex: case Spec.NoUrl{why}: IO.pure(Response, Err{why}) case Spec.Exchange{secure, host, port, +method, req}: do IO: a : Wire.Answer <- Wire.wire.talk(secure, host, port, method, req, tail) IO.pure(Response, http.answer(method, a)) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes 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=emerging-ezhttp@0.21.0.0/src/client.bend&name=http.answer https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/wire.bend&name=Answer https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/wire.bend&name=wire.talk https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/wirespec.bend&name=Exchange