Server.server.send.text: def of ezhttp@0.22.0.0 Import: import ezhttp@0.22.0.0/src/server.bend as Server Lines 179-181 of ezhttp@0.22.0.0/src/server.bend: https://jend.leeeet.dev/read.txt?path=ezhttp@0.22.0.0/src/server.bend&start_line=179&end_line=181 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes import ezhttp@0.22.0.0/src/step.bend as Step import ezhttp@0.22.0.0/src/wirespec.bend as Spec # send text as its UTF-8 octets def server.send.text(sock: Socket, text: String) -> IO(Socket & Step.Got): server.send(sock, Bytes.from_string(Spec.wire.payload(text))) 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=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Socket https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=from_string https://jend.leeeet.dev/definition.txt?path=ezhttp@0.22.0.0/src/server.bend&name=server.send https://jend.leeeet.dev/definition.txt?path=ezhttp@0.22.0.0/src/step.bend&name=Got https://jend.leeeet.dev/definition.txt?path=ezhttp@0.22.0.0/src/wirespec.bend&name=wire.payload