Client.http.send.timed: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/client.bend as Client Lines 71-82 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=71&end_line=82 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, bounded by a timeout, sent and read # by its own method def http.send.timed(ms: U32, 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.timed(secure, ms, host, port, method, req, tail) IO.pure(Response, http.answer(method, a)) Uses (10): 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=Base/base.bend&name=U32 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.timed https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/wirespec.bend&name=Exchange