Io.client.took: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/io.bend as Io Lines 406-413 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=406&end_line=413 import Base import emerging-ezhttp@0.21.0.0/main.bend as Ez import emerging-ezhttp@0.21.0.0/src/http.bend as Http 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 # what an ezhttp response to a request says def client.took(res: EzClient.Response) -> Rpc.Reply: match res: case EzClient.Err{why}: Rpc.Unread{why} case EzClient.Response{status, +headers, reason, bytes}: Client.took(status, Http.headers.find(headers, "Content-Type"), Ez.body_text(bytes)) Uses (5): https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/main.bend&name=body_text 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/http.bend&name=headers.find https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/client.bend&name=took https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/rpc.bend&name=Reply