Rpc.head: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/rpc.bend as Rpc Lines 112-117 of ezmcp@0.1.0.0/src/rpc.bend: https://jend.leeeet.dev/read.txt?path=ezmcp@0.1.0.0/src/rpc.bend&start_line=112&end_line=117 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 # the fields of one decoded message def head(+val: Value.Json) -> Head: Head{Json.is_obj(val), is.v2(Json.as_str(Json.get(val, "jsonrpc"))), Json.has(val, "id"), id.ok(Json.get(val, "id")), Json.get(val, "id"), Json.as_str(Json.get(val, "method")), Json.get(val, "params"), Json.has(val, "result"), Json.has(val, "error")} Uses (8): https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/main.bend&name=as_str https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/main.bend&name=get https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/main.bend&name=has https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/main.bend&name=is_obj 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/rpc.bend&name=Head https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/rpc.bend&name=id.ok https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/rpc.bend&name=is.v2