Client.get.query: def of bendonnect-rpc@0.1.0.0 Import: import bendonnect-rpc@0.1.0.0/src/transport/client.bend as Client Lines 107-115 of bendonnect-rpc@0.1.0.0/src/transport/client.bend: https://jend.leeeet.dev/read.txt?path=bendonnect-rpc@0.1.0.0/src/transport/client.bend&start_line=107&end_line=115 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes import bend-kit-url@0.4.1.0/url.bend as Url import bendonnect-rpc@0.1.0.0/src/protocol.bend as P # Query order follows the Query-Get rule: connect, base64, compression, encoding, message. def get.query(+codec: P.Codec, msg: Bytes.Bytes) -> String: match codec: case P.Json{}: "?connect=v1&encoding=json&message=" ++ Url.pct.encode_q(Bytes.to_string(msg)) case P.Proto{}: "?connect=v1" ++ get.b64("proto", msg) case P.Custom{name}: "?connect=v1" ++ get.b64(name, msg) Uses (7): 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=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=to_string https://jend.leeeet.dev/definition.txt?path=bend-kit-url@0.4.1.0/url.bend&name=pct.encode_q https://jend.leeeet.dev/definition.txt?path=bendonnect-rpc@0.1.0.0/src/protocol.bend&name=Codec https://jend.leeeet.dev/definition.txt?path=bendonnect-rpc@0.1.0.0/src/transport/client.bend&name=get.b64