Ezmcp.http.handle_from: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/main.bend as Ezmcp Lines 223-234 of ezmcp@0.1.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=ezmcp@0.1.0.0/main.bend&start_line=223&end_line=234 import Base import emerging-ezjson@1.2.0.0/src/value.bend as Value import emerging-ezhttp@0.22.0.0/src/http.bend as Http import ezmcp@0.1.0.0/src/rpc.bend as Rpc import ezmcp@0.1.0.0/src/server.bend as Server import ezmcp@0.1.0.0/src/web.bend as Web import ezmcp@0.1.0.0/src/io.bend as Io # one request to the MCP endpoint at `path`, its server and runner given # `ctx` def http.handle_from( ~C: Data, ~srv: C -> Server.Server, ~run: C -> String -> Value.Json -> IO(Rpc.Out), ~path: String, ~origins: List<&2, String>, +ctx: C, req: Http.Request ) -> IO(Http.Reply): Io.http.web(C, run, ctx, Web.decide(srv(ctx), path, origins, req)) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/http.bend&name=Reply https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/http.bend&name=Request https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.4.0.0/src/value.bend&name=Json https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/io.bend&name=http.web https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/rpc.bend&name=Out https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/server.bend&name=Server https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/web.bend&name=decide