Io.client.ask: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/io.bend as Io Lines 415-425 of ezmcp@0.1.0.0/src/io.bend: https://jend.leeeet.dev/read.txt?path=ezmcp@0.1.0.0/src/io.bend&start_line=415&end_line=425 import Base import emerging-ezjson@1.2.0.0/main.bend as Json import emerging-ezjson@1.2.0.0/src/value.bend as Value import emerging-ezhttp@0.21.0.0/main.bend as Ez import emerging-ezhttp@0.21.0.0/src/client.bend as EzClient import ezmcp@0.1.0.0/src/rpc.bend as Rpc import ezmcp@0.1.0.0/src/client.bend as Client # POST one request and read its reply def client.ask( url: String, version: String, timeout_ms: U32, msg: Value.Json ) -> IO(Rpc.Reply): IO.bind(EzClient.Response, Rpc.Reply, Ez.http.post_opts(url, Client.headers(version), Ez.text_body(Json.print(msg)), timeout_ms), r => IO.pure(Rpc.Reply, client.took(r))) Uses (13): 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=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/main.bend&name=http.post_opts https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/main.bend&name=text_body 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-ezjson@1.3.0.0/main.bend&name=print https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/src/value.bend&name=Json https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/client.bend&name=headers https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/io.bend&name=client.took https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/rpc.bend&name=Reply